Received: by 10.223.185.116 with SMTP id b49csp4328134wrg; Tue, 6 Mar 2018 13:51:35 -0800 (PST) X-Google-Smtp-Source: AG47ELtDz8ViN0bvC7hOeWMezAFnkA3dh3xOb77gQmaaHcuDDYYAU9wRZzs6OqhHxGf+uPnmO2nN X-Received: by 2002:a17:902:aa03:: with SMTP id be3-v6mr16554014plb.211.1520373095449; Tue, 06 Mar 2018 13:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520373095; cv=none; d=google.com; s=arc-20160816; b=ZS070CI1vVvGRPwvVhlGQ1nt+pBFsYcfLa20YT77Yt0sgcYW4Ulb/7BTtBpeqMn6kc W63o9uThvAJmk6yAITJlpLmqmY6frSlr9yiPMMiXm/Zks8oLHz/PbE9fBLasDKjjF1hj MWioWwTyK1tB/vhgdDlO6zX+2bm/gbCJZeI1ckAXWsewXLIVXbOetvpSxjDu+1GIIMCc rtTC0xHkHXMsyoJPs+9ayxRJyF/ledd9RYkY3NjHko8iSiVxF7I/YgGTpVtd3gHRicaA r98+cg7lmyIHLbHhvCapPatgPP9KrXvKN3j0qd1z2UItfe6uycrRTSbf3zljxVIbuJ3j vtWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=wTC2u6HWZlSqCrQEupiY8EdaB6si+4jkErwIvjD9Br4=; b=IcH3pHmw7Rx/g7fdXv2nKoxXVHNBQo9aBV891mjHbV2IHL2hwb9okS6GxNWAZz+Djq t5awoblGzOaBZj893p+5PQWGglE4u/NlYDpjHqStv7gEWkOmss/Uz9W7CPb4CqeOyyfO GynssmkwC4YWL8eowqdhx2KEuXfU7MNtIHJ6bC4z8lKVIqZrtSA8MjJjgoGVmjdb+4eJ XBE5FssSp1NfoHsEuRWbF1T3wnKdXoSBPpvB11qSJ4JyywzDbExqcg1C5d4kQelK7MP9 h7jpJEH+T2vu1630G+AUhPNUrE6BEmDJT9kZeYoGt8NiOGcIP6cY9iWtXgIWBw4rW7YW 2iag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=BtuUqmCT; 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 d12si10355535pgq.734.2018.03.06.13.51.20; Tue, 06 Mar 2018 13:51:35 -0800 (PST) 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-2017-10-26 header.b=BtuUqmCT; 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 S1754185AbeCFVtL (ORCPT + 99 others); Tue, 6 Mar 2018 16:49:11 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:34354 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753823AbeCFVtJ (ORCPT ); Tue, 6 Mar 2018 16:49:09 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w26LlZx5139269; Tue, 6 Mar 2018 21:48:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=wTC2u6HWZlSqCrQEupiY8EdaB6si+4jkErwIvjD9Br4=; b=BtuUqmCTb3XTTStH0hY/1zRv8bP9ZX5qA7H+8Sctl+b9pteCVIcyIDUI0ZxKS+YfAZ0G bpbH/16910sAkzhtKpHcclfQYZLozojROG2vUYT2/yA9jad0Jg4d7L3SeiKdF01TIk5d lftH/Lj3B3AzsSsH8xKcpS4OYLKpNJYIhxSr6BeFB79t5vaBXMlgD60dbzxKHdg49M5y so2bTqD9WpnusElNp1asUPWr2JELcZwI89RT8bGa4FO6JzBFx6H3I58AxjVAKGPKhpSk yCZlezUp3FvsXPuudzeFX4JNDFNvPahVU9i9P7DVsPNL8SGCAO7I1SB8mdNYyFqvv4l8 YQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2gj2xyg3jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Mar 2018 21:48:41 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w26Lmd9l017401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Mar 2018 21:48:39 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w26LmYwr007070; Tue, 6 Mar 2018 21:48:35 GMT Received: from [10.39.227.28] (/10.39.227.28) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 06 Mar 2018 13:48:34 -0800 Subject: Re: [PATCH] mm: might_sleep warning To: Andrew Morton Cc: Steven Sistare , Daniel Jordan , Masayoshi Mizuma , Michal Hocko , Catalin Marinas , AKASHI Takahiro , Gioh Kim , Heiko Carstens , Yaowei Bai , Wei Yang , Paul Burton , Miles Chen , Vlastimil Babka , Mel Gorman , Johannes Weiner , LKML , linux-mm@kvack.org References: <20180306192022.28289-1-pasha.tatashin@oracle.com> <20180306123655.957e5b6b20b200505544ea7a@linux-foundation.org> <20180306125604.c394a25a50cae0e36c546855@linux-foundation.org> <20180306132129.45b395d9732b6360fa0b600d@linux-foundation.org> From: Pavel Tatashin Message-ID: Date: Tue, 6 Mar 2018 16:48:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180306132129.45b395d9732b6360fa0b600d@linux-foundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8824 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=848 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803060234 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > That's why page_alloc_init_late() needs spin_lock_irq(). If a CPU is > holding deferred_zone_grow_lock with enabled interrupts and an > interrupt comes in on that CPU and the CPU runs deferred_grow_zone() in > its interrupt handler, we deadlock. > > lockdep knows about this bug and should have reported it. > I see what you are saying. Yes you are correct, we need spin_lock_irq() in page_alloc_init_late(). I will update the patch. I am not sure why lockdep has not reported it. May be it is initialized after this code is executed? Thank you, Pavel