Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp858571pja; Wed, 1 Apr 2020 09:57:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJzWlDRSkcjK2J4I+xHEAQebGCcFhORbBvC+OWBhv+7xePqE4tAnMmpdmZmyP7Oldo0OJIB X-Received: by 2002:aca:ab4b:: with SMTP id u72mr3607588oie.97.1585760279500; Wed, 01 Apr 2020 09:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585760279; cv=none; d=google.com; s=arc-20160816; b=schpYvxSqJcDhWTddg5gw1exJiwDArM1FFY2znunDkNpF3y4o6RU4aRcVbZ9kBvjt4 U+XwbauDItQYIJt2eMjVHtRurDgXADWATDVHtQpsc7y720S3Kooirm/UIsNFe1CmuQ9o aFrM9nk4l3Za5DBpmKq4sqPs0z7VAKpTYGayw7/TDEWjOGXvX80TWnS7edu1HEnldhKi +fXd2h2acRjkEzf4JtAFfJsmyU6XLNaBTdPQESdKgFxu0JEVKM4jyAf/U5xYOYrI9Rik JqkFfi9PAUsjGL3eX0k6/Sw3CBeHJIZF2G8/7aqEh8RXhus1Ro6oTfSCiWP690hiU4LM B58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wf5Epvd2PkMi8L7E/eRCUSR0FOvN4Hz0yrwmht90YC0=; b=frTSavl15WsTAAruSjl33oXsywS0UkIpH0h2UZH9htAXP9Wd0lxjpU8K53Ro/MXZrW ashOV0UrCCzixvQw0lUQYvEInWgvvfbfrPDUr2CJbQQdkyzap6y453XYSptAXv6RlBVT mtbPWYUQJvCP1pNnCCMOxwi3xpqJ1MzouIIKhB3P9BqSpM+Ui7+xMQuZmXa3QfKXSJkf nzz0yYaKUC+lSuUqbLdpk+96PoLVXrtP11RzvX3fjijSwNmK/gqLNkgAhzhnW/XTGGq7 fVGaS9STi4PLpHxeX0twlpqcmuYkQlBy1iPJnnMDUo5LYTVca1BVm9Tnzo2sZwSE26JR ChNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=B1OBTGwN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si926139oou.60.2020.04.01.09.57.44; Wed, 01 Apr 2020 09:57:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=B1OBTGwN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732859AbgDAQ4y (ORCPT + 99 others); Wed, 1 Apr 2020 12:56:54 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:56526 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732784AbgDAQUL (ORCPT ); Wed, 1 Apr 2020 12:20:11 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 031GIeiP192555; Wed, 1 Apr 2020 16:19:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=wf5Epvd2PkMi8L7E/eRCUSR0FOvN4Hz0yrwmht90YC0=; b=B1OBTGwNefZz4cvyBMFGvInJhvACIyJVqEmEJQzCbvhwtMRqnux8ubHv88gUbJgRISwc sgQmJYNDDopM8HVE9vyndAjbTtCMdIoiwwuWNaKk9Fq4z0IJsf82fb26GoPVQzVprvNE jH21TQWFzyg+ARWRC5s1+eg0c1gnH48JZE/Pn220xQB2xncVFBUZfdqqti5OQqxdAP3a xZ8NYJsN91wJTh/BMvle72pBf1hqadkuN3ealpyD49mz+IuVUHtzBFpryfpcFtHy++I9 gvkQFQO+C0rK+UPXM/DX+49O9GfxjF/ObUeOj/4KTwr59M/btMolfsLq8nOLGAXPI0Ow TQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 303aqhpxbu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Apr 2020 16:19:56 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 031GGsu9071569; Wed, 1 Apr 2020 16:17:56 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 302g2gwbn7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Apr 2020 16:17:56 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 031GHspi005974; Wed, 1 Apr 2020 16:17:54 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 01 Apr 2020 09:17:54 -0700 Date: Wed, 1 Apr 2020 12:18:10 -0400 From: Daniel Jordan To: Michal Hocko Cc: Daniel Jordan , David Hildenbrand , Shile Zhang , Andrew Morton , Kirill Tkhai , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm: fix tick timer stall during deferred page init Message-ID: <20200401161810.xvqikca2x46yqrlx@ca-dmjordan1.us.oracle.com> References: <20200311123848.118638-1-shile.zhang@linux.alibaba.com> <20200401154217.GQ22681@dhcp22.suse.cz> <20200401160048.GU22681@dhcp22.suse.cz> <20200401160929.jwekhr24tb44odea@ca-dmjordan1.us.oracle.com> <20200401161243.GW22681@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200401161243.GW22681@dhcp22.suse.cz> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9578 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004010141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9578 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 clxscore=1015 malwarescore=0 impostorscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004010141 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2020 at 06:12:43PM +0200, Michal Hocko wrote: > On Wed 01-04-20 12:09:29, Daniel Jordan wrote: > > On Wed, Apr 01, 2020 at 06:00:48PM +0200, Michal Hocko wrote: > > > On Wed 01-04-20 17:50:22, David Hildenbrand wrote: > > > > On 01.04.20 17:42, Michal Hocko wrote: > > > > > This needs a double checking but I strongly believe that the lock can be > > > > > simply dropped in this path. > > > > This is what my fix does, it limits the time the resize lock is held. > > Just remove it from the deferred intialization and add a comment that we > deliberately not taking the lock here because abc I think it has to be a little more involved because of the window where interrupts might allocate during deferred init, as Vlastimil pointed out a few years ago when the change was made. I'll explain myself in the changelog.