Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp395873pxb; Thu, 2 Sep 2021 06:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvtzv3x3BFtswCUzXhj72Gx/lvLsJPC2u1b93toirZ+E5/tuz/tqjRENgtfIJTm4nRTMNg X-Received: by 2002:a50:ec10:: with SMTP id g16mr3627999edr.35.1630590271557; Thu, 02 Sep 2021 06:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630590271; cv=none; d=google.com; s=arc-20160816; b=LsGeSPrF5dZSbxRs1ZAxjUFvZyV6mwmP5bZxSt5a8jgfstvwVTc5KpPqOYgn0rwBOV MX0cMYmlvZiLLC6WM8WIEqvB9c8Dc9RFENWk5pUlJKlGIfUOFh+h2paM5hZtBwe7b9OD VHaVsNeF7oLveK/3xWVnq2HlqdXXboWLwc1joL2d1JXb9NtFHj7qNzOAoF92221zvUlH /uygEeeyzJFih2pmszRrzfXOCMchaxEIrhq7IcrX52qtrQpr44rg4pXwFE2YXmTxVEH5 iWHw7H0SrqLekOFQJlhBo78fkLJkX0z0s3LpJC7IsOM+lr/Q0dTFirn4DwERxft6zfBY XahA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/4KUdrdu2ZZlJB+kQ4qlKPGyeRskjNAqaMRoBQTyFAo=; b=rE9AEdipd4S1SQjjek3BmG/G0ZJhdMEFL31CmX+tbdok8i1yLnN1UCpj/ZDdJFZD7C 4g35ZKWfEl2Cx8BtTK3r5WM3NDjvwqprAifA6o+q2hIewpeiw4ncW4SSLZejcUicq5BV on6rlgWmT75ZbxV/FNY+z8i9BG7yap4grd2cZFoFUMOyRIOWqklTl4s/+6ZWBuIx7Ck5 10RnFSarrV2vMCaHgsjLTOQW9B3Go9RcO3JGUl6f0oouidHRn6ATK0quwIJs+Mt9ajSR jfM/6OFINhhh1wW00jsAqD0HqBXGdd55s4lvTP/D2cpS13Ad3RxoXqrxpTAmZN9nHMJ/ AtQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vlmc0S2+; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr5si2082108ejc.602.2021.09.02.06.43.45; Thu, 02 Sep 2021 06:44:31 -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=@linaro.org header.s=google header.b=vlmc0S2+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345336AbhIBNkd (ORCPT + 99 others); Thu, 2 Sep 2021 09:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345324AbhIBNkb (ORCPT ); Thu, 2 Sep 2021 09:40:31 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB91C061575 for ; Thu, 2 Sep 2021 06:39:32 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id me10so4432598ejb.11 for ; Thu, 02 Sep 2021 06:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/4KUdrdu2ZZlJB+kQ4qlKPGyeRskjNAqaMRoBQTyFAo=; b=vlmc0S2+CjLTalJLTUHRB2w+UL03UT2ZrNb0WEPqlHQw+gG/nsjJBxFdl8KfD9H5pA CrgkeGibHvHuekZmUEVHHyUZrRecRCe2NWsEYnGTHEPCb0FFlfzB1PyCGnF/GnHMPblZ GXdAXaS8nOwAOa8TWWdjwtKM7fN2aE4S+HmsY3h1hnA0o1y7MVaysgpvtXFLjjcRamRC 38cU7S2U5yAawPIRWfcQ+SbzQI4wxhYCUHt4fQSGhIvigcq86sqnh2XJXPie2DjUb5xW WsRfTFI3Cv5976Lk80UB2KCACRVz4E0tW3JmUHJslGJw/iUdjpDYvLz2qb07G5hHqzFC ehIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/4KUdrdu2ZZlJB+kQ4qlKPGyeRskjNAqaMRoBQTyFAo=; b=hwxhDreJNTKQfzB4JU3PzU0CsRtyJ9F8l73E3PG3ycSyCSNj1Hg2BggRBXIg4Dn0zB +gc16f+fo40jA/KxAfGpdlvxGnpHO9Tf6HDwOzG6tW36w+x+oM5T1v3Dvk2vNkpCCwgr U3AHQLAfitkEXVDSG/YYL3mfSfD+kJ16ThTi/UmX5WfJnlK2OwqBmZptioWcRXZGtMbH cJ+iat3CcdIjW5oC3UsfIG5wosgNyFENRs5EUYQfBTrsRyytLyYyeqKCj0oQ6O55eIBw coLU0yuhcYJeK891eCw14YB9Ab4+sIp8fOnBECJQAlr0WU33oV3RGlemZZTfnLh74oWF tZOA== X-Gm-Message-State: AOAM533UiOpuK8/FQ/r7zPe5zmfW9UakNvFCfdqpx/oZd3sXQp+gp/t0 kc+/kdzcCJH8XCtCTdXl7gMV5U9sqUNqRZhPeSP044eElJkfiQ== X-Received: by 2002:a17:907:7785:: with SMTP id ky5mr3880812ejc.247.1630589970870; Thu, 02 Sep 2021 06:39:30 -0700 (PDT) MIME-Version: 1.0 References: <20210824165607.709387-1-sashal@kernel.org> <20210824165607.709387-127-sashal@kernel.org> <329ccdd224e763f1fe53f2ad88b8c835d76f55f0.camel@kernel.org> In-Reply-To: <329ccdd224e763f1fe53f2ad88b8c835d76f55f0.camel@kernel.org> From: Naresh Kamboju Date: Thu, 2 Sep 2021 19:09:19 +0530 Message-ID: Subject: Re: [PATCH 5.13 126/127] fs: warn about impending deprecation of mandatory locks To: Jeff Layton Cc: Sasha Levin , Greg Kroah-Hartman , open list , linux-stable Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2 Sept 2021 at 18:57, Jeff Layton wrote: > > 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. I will communicate this warning with the LTP community. Thank you. - Naresh