Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2293210ybv; Fri, 14 Feb 2020 15:42:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwHvQoaBuMoFZmn5fflBkVPUK2ltpW0tNDa5iBxqxhU90+SAbAAN5jyNdnwGzN34xoWhutP X-Received: by 2002:aca:f1c6:: with SMTP id p189mr3663503oih.159.1581723771524; Fri, 14 Feb 2020 15:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581723771; cv=none; d=google.com; s=arc-20160816; b=e/S240tCDv2Ok03AGVjldb7k/ACn70pDWrCbtTvja7Ny9tJxDt5kWt0ZYV/13ZnRf7 7gNn01pK4Goh8BZ4uerRrqCoRpiI56WrQcWcm6o7e5g/8LVfcJGb8LuggXWPmC6tS9UW c7jAFV/JKWepA6I2GfxanFzFMUJVikoKHjYrdIFTxe9RSgOhkH2i0gI8S61xgXHBZ5wB Y2EmYez4c6XlT4Jx7T4YsKVlCDbroszRS30F4kbXIEbOSsoj9aVTe/cpdumy69bVrj5s pu5DYTvdBQt+Q5ZGYMVgHgdcX3G+NW6axJvHFo99FXWz0ZLNBUjYpPUd0qLuz7KKioAp YOeA== 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; bh=tbNdfqYrYh6i+Qtlbrau2oHkQi8x7QDUc6eg1xYv1mQ=; b=ke6CPhypJ4xZB0isy9F69xmt+ENUnr8o+uv4yWjAmpv8gQ3nhf2/8CAYoaBjDrIcwq 8H1lb0HzsdPl+dLcSc1aL1pAG6qHNnSRE5v3VRMZijXPILBDDMCdeNnM4QROVCnboL/E IRLhSloHNzKUJHv1hxfVCOrciuB7Wap3oiqtKMe69mlb4qWjRAFfz17tThu5sYZu4hu2 o2ogvUF/7I5X2FsB3eeqe5wubPQSLDrs2mGzTBQV1XokDyOA3OdO9HP3mTbQc5SpNN08 BKmgDjlakJTIYgA9/T4bydDCFKokdg0ox2/E4B866Oi9qTgMfRFoOjlny2CHKUHe8W0K eAyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=UGOcS6nw; 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 m12si3291355oim.195.2020.02.14.15.42.39; Fri, 14 Feb 2020 15:42:51 -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-2020-01-29 header.b=UGOcS6nw; 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 S1728264AbgBNXma (ORCPT + 99 others); Fri, 14 Feb 2020 18:42:30 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:50582 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727649AbgBNXma (ORCPT ); Fri, 14 Feb 2020 18:42:30 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01ENcvop123335; Fri, 14 Feb 2020 23:42:26 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-2020-01-29; bh=tbNdfqYrYh6i+Qtlbrau2oHkQi8x7QDUc6eg1xYv1mQ=; b=UGOcS6nwXGYckKfWTBg9l6ujnyRM+HYK1lpE5XBTm3VHOQoVV97dVli1C0TYLzx+SSwZ zJPUSuXKZhD3KAUZe7MOQa1K0HqWHiaH9kULhQItsP5CzhdSkeRCaqr9ijQHjkuxYkDq xZYqoTOr0reRvUncFotW7ztSzsUlS0g/Rs0aCWleGfyJQ5cHZ5t5g30AWPwFZEiSntUc EIJwFr7rpnbbluo8WGATl/NH8qLwedqJ9mFY0lXAk96AKDGYbMf9rNPtxYJUfsqCr5pX qtfiQUplvwNgaPrtsh3Xa8iq/jRqQHLBmerTdLTTbeEJEj0xABX+6j0UPrUFcE45MtWY Kw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2y2jx6vdat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Feb 2020 23:42:26 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01ENc3fC086120; Fri, 14 Feb 2020 23:40:25 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2y4k3f5yh0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Feb 2020 23:40:25 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 01ENeOBU024383; Fri, 14 Feb 2020 23:40:24 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 14 Feb 2020 15:40:24 -0800 Subject: Re: [PATCH 06/30] mm/hugetlb: Add missing annotation for gather_surplus_pages() To: Jules Irenge , linux-kernel@vger.kernel.org Cc: boqun.feng@gmail.com, Andrew Morton , HUGETLB FILESYSTEM References: <0/30> <20200214204741.94112-1-jbi.octave@gmail.com> <20200214204741.94112-7-jbi.octave@gmail.com> From: Mike Kravetz Message-ID: <2df96cb5-e4db-6133-3406-a97fef9a3028@oracle.com> Date: Fri, 14 Feb 2020 15:40:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200214204741.94112-7-jbi.octave@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9531 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002140172 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9531 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 adultscore=0 phishscore=0 impostorscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002140172 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/14/20 12:47 PM, Jules Irenge wrote: > Sparse reports a warning at gather_surplus_pages() > > warning: context imbalance in hugetlb_cow() - unexpected unlock > > The root cause is the missing annotation at gather_surplus_pages() > Add the missing __must_hold(&hugetlb_lock) > > Signed-off-by: Jules Irenge Reviewed-by: Mike Kravetz -- Mike Kravetz