Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1197334ybk; Thu, 21 May 2020 00:46:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP4eaxOgrxFcnLyZhiR8StJk5udtVK3KBwx3+Dy1d4K85ipeW/Ynt26jvOTiBPHLIYy00v X-Received: by 2002:a17:906:f916:: with SMTP id lc22mr2435626ejb.96.1590047204864; Thu, 21 May 2020 00:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590047204; cv=none; d=google.com; s=arc-20160816; b=LVC6QjavIsUJf4QeJ8ey3/X0NuWPkCWvz6S7avJXlRJvkIuFfcRSLMiILvCclWYjRE fJ//n0Q3+KPtSx1HPVFwN9w7mLeeR+7gRMGTka/FVunSbtvXaaZWO8tiZjjcY6YpplAD B36MJyVlaOaUqWWrYBiwo7eZJvvKhDha+OVj33VpbTncmK1gSkhDkQ0Sl517zOJZYQDn 7wbNFzXHkBuqxDJJkrlZIHGXzQtKjFtbjU9ER2WuZSdr/KZtFPFzkZfRl9lomsrMD0fX OUkkj4uMqVKL+6RboeaM2l3emMV80HEVWy0496RivHh/1cIl9F5esYdhmZLL8cp5Rnch Gv7A== 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; bh=CEZO2F+Bjl3+cR0VVZaSJ9luImigwBn9zman6W9496c=; b=gWPf7a5YbVR79NPrWbWQu2vKvD3U+qEb4fArFHQhfbxPpK7f6nbmpTRneSskbUOIcO isPy9qwOdJxjNo2C62f2K6MKiko7Gk4SdEz84xKETLSpKLyNyZ+ztwgUn6yXS49F15Ds OQilqOLH+KiXUJkYVDlvDeYFiLaZ3VupOuVXiQSiy3iM4hEDAV1MOfeKDVvfDqZ/gC38 KAU/d+skf8tIuspc8AzFa7Y6la8xX9LqjpJWwRA4pjXRebDzpulShk26lGsLAwh0dqgz 575FKYvBKfZU1rcy4rsxmLHhy1RC3rDdcTnZNZ1kh2kBC3LmrU35D61eAfkcKKjjP27a Fj0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si2646451edf.497.2020.05.21.00.46.22; Thu, 21 May 2020 00:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728508AbgEUHmG (ORCPT + 99 others); Thu, 21 May 2020 03:42:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:35472 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728245AbgEUHmF (ORCPT ); Thu, 21 May 2020 03:42:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DF51FAD78; Thu, 21 May 2020 07:42:06 +0000 (UTC) Subject: Re: [PATCH v6 12/12] mmap locking API: convert mmap_sem comments To: Michel Lespinasse , Andrew Morton , linux-mm Cc: LKML , Peter Zijlstra , Laurent Dufour , Matthew Wilcox , Liam Howlett , Jerome Glisse , Davidlohr Bueso , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan , John Hubbard References: <20200520052908.204642-1-walken@google.com> <20200520052908.204642-13-walken@google.com> From: Vlastimil Babka Message-ID: Date: Thu, 21 May 2020 09:41:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200520052908.204642-13-walken@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/20 7:29 AM, Michel Lespinasse wrote: > Convert comments that reference mmap_sem to reference mmap_lock instead. > > Signed-off-by: Michel Lespinasse Reviewed-by: Vlastimil Babka But: > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index a1247d3553da..1bf46e2e0cec 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -224,7 +224,7 @@ static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) > * handle an empty nodemask with MPOL_PREFERRED here. > * > * Must be called holding task's alloc_lock to protect task's mems_allowed > - * and mempolicy. May also be called holding the mmap_semaphore for write. > + * and mempolicy. May also be called holding the mmap_lockaphore for write. > */ > static int mpol_set_nodemask(struct mempolicy *pol, > const nodemask_t *nodes, struct nodemask_scratch *nsc) :)