Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp824539pxb; Thu, 2 Sep 2021 16:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxu7nFTQ71ycaLn7JBOvDMSb+uxZkk8PM97Ef+Pb4aN/PjPa+JZ8op2mBifTKXKnkXYmQb3 X-Received: by 2002:a6b:fc1a:: with SMTP id r26mr707415ioh.30.1630625067951; Thu, 02 Sep 2021 16:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630625067; cv=none; d=google.com; s=arc-20160816; b=EkkCbPGdGR1d78SvbVirkeDVBcEPvMRTwNY+hw3up4ifI6z7a+LNy5YZ458dBJ3jSi q0cwGOadJkMbcqrsVKtIQnJ5s7SeLoT57XjCnuxPPlI27zTqJF1W07KIwK6ubHxAs174 lvx0+02zaipMS5dLa1SKTi+7rdyUsxBA3T0CdxhwYscyWz7elxfRGnoHlsw9kdKJEqd9 PVz+AX/OgrGSyMI/PFIAL75jgyc5SImDMkkFSBdQlKQsR5ehZbPO8L98pi2kuNaTMM9c /eQ8DpYd4E4+2QCs1ZQhCiwy0v6WOAo/ddmiGAt6bfWR5yhG99PNJ4j+zK06LiNQcZ8P 2gcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=zZcKBEfzgshlc0k235q1iT2+afDgLgq7srVaJunp8qA=; b=yzPOQ2ALN5tsBN4NH6LTx5dy+sU5p1o0TrjRVWDeB6+lazcw6K72jG/wyzCamCdsP6 +LctJ7VBTe+k3M3FOZ56OW1ehTowcAdnvP1kk5SJdq0tUIUHXOHjnzfSrXQDxmWB+/qp c/yKWW6qVoCBcmFdbnNYMKLXUzwvVBizrcwJUxsJZ8sLdfK1UF8P7C1lavOskkx/gyfj ZIuLwyYAAghxB9dArd5gGe1aDk5OQRWUiC0UaVH8ZUtNlgWCgO2CFo8OMc6Z92UItONy Q+QAAYe3bwtCs4T585xMNJicoHZ0Ex8Lymz5hLeejR68zrBn/hPXJ2AQ3Yx3MYj4HCBA WAsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n+y0vtkN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si3202088jac.2.2021.09.02.16.24.16; Thu, 02 Sep 2021 16:24:27 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n+y0vtkN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234277AbhIBN2t (ORCPT + 99 others); Thu, 2 Sep 2021 09:28:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345033AbhIBN2q (ORCPT ); Thu, 2 Sep 2021 09:28:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAE2260525; Thu, 2 Sep 2021 13:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630589268; bh=do/fDww6sgdWV/W986/c6UAnHMCoHd+IHCgtE+5+8dE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=n+y0vtkNPBB4LpFz5h8umcnfxSQKnRPTMPmbgREGQGQIw2ktx+NG1nI2oh4bvzibZ yEJ7ucJmKL2PdViE3ilbM7uA/uBzwMJtFYK0IGQ5yqWrG3Ud9ZAcC5a42sdyv7cXeE IVlzjxnZCAWTzZ9Yn+4jvSV2GB1gX3rO8CS9dmLfB6/iWAym08g9VTmKYTvd1inHug +1Qu/SN4bimSjGnof4K849D5m3aKyb5266AmcoT3y5qn7vBeUq4PqqQxVvMSIjlzyS edZgH7m/xv4NU2nWbbMQ0P7ZL67Q+bYzw1Bkg0Bjmo++veKOwPJz747Dt+9Kfy73RY U/W0fIT8a/4Ng== Message-ID: <329ccdd224e763f1fe53f2ad88b8c835d76f55f0.camel@kernel.org> Subject: Re: [PATCH 5.13 126/127] fs: warn about impending deprecation of mandatory locks From: Jeff Layton To: Naresh Kamboju , Sasha Levin , Greg Kroah-Hartman Cc: open list , linux-stable Date: Thu, 02 Sep 2021 09:27:46 -0400 In-Reply-To: References: <20210824165607.709387-1-sashal@kernel.org> <20210824165607.709387-127-sashal@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-09-02 at 18:50 +0530, Naresh Kamboju wrote: > On Tue, 24 Aug 2021 at 22:35, Sasha Levin wrote: > > > > From: Jeff Layton > > > > [ Upstream commit fdd92b64d15bc4aec973caa25899afd782402e68 ] > > > > We've had CONFIG_MANDATORY_FILE_LOCKING since 2015 and a lot of distros > > have disabled it. Warn the stragglers that still use "-o mand" that > > we'll be dropping support for that mount option. > > > > Cc: stable@vger.kernel.org > > Signed-off-by: Jeff Layton > > Signed-off-by: Sasha Levin > > --- > > fs/namespace.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/fs/namespace.c b/fs/namespace.c > > index caad091fb204..03770bae9dd5 100644 > > --- a/fs/namespace.c > > +++ b/fs/namespace.c > > @@ -1716,8 +1716,12 @@ static inline bool may_mount(void) > > } > > > > #ifdef CONFIG_MANDATORY_FILE_LOCKING > > -static inline bool may_mandlock(void) > > +static bool may_mandlock(void) > > { > > + pr_warn_once("======================================================\n" > > + "WARNING: the mand mount option is being deprecated and\n" > > + " will be removed in v5.15!\n" > > + "======================================================\n"); > > We are getting this error on all devices while running LTP syscalls > ftruncate test cases > on all the stable-rc branches. > You really don't want to run those tests anymore then. The "mand" mount option no longer works, so any tests that require mandatory locking won't function correctly. -- Jeff Layton