Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp916036pxb; Thu, 19 Aug 2021 14:45:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSyJrvktlShX2l2nQuAqN1sYak6jaY4IqeJrzgkiFBR1RNu5By97eE2f4I88FEY0GqAodP X-Received: by 2002:a02:970d:: with SMTP id x13mr14692990jai.57.1629409510889; Thu, 19 Aug 2021 14:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629409510; cv=none; d=google.com; s=arc-20160816; b=aKHIudo3RrBo0ze98C95T5BtXiuOHFI+5+VphtoGaGdTJ3a6BQoP4EjdTm3XH/Cegz mQ2I0U/1CFd9Kd8fV+/hCmwOy08/BfFfQRJj1IksZD6huXLEjmobxxCkZ4in/irakSK4 jXwQsvUzXxXqeADfIoM+M5Xb6qrTC14T8zSvNEsSn1kwcUTWFxDXV5BI7rjCku0a76Hl zSj/XP770b9aQRYDnS9SbmNFL32Q770UIyblfrb3/P4qyRt/ipQg4eo+OfpSZLnTT0Gw HOJxBMc87XsZJ1Gny4IXCycQtr/Qxzi9wqfFyZvTeLkf326vtf1hcZ676dPBHqaypjXR EN2w== 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=ioD1nqz8jMbgOBVDKvqqkRyanLIEDYUtP9AjvHv0/Ko=; b=gEUWYlFG2SU0Mbyc8YQ/uEONT4vivL8mCL5ic+PkexLACdmgMQMaLCOiegNOKh5M9r lN7GVy7ouWiKnYydeAw4a4DIIvGjNXWqDqRhFDfeQWjR+f46wZCj/a/QSEy9uy3NUWM7 Iw6RlMe+Ig8qDEosFgTdQ6QHgtub6GY8OoW6cQ/ewlOZz4VPdx+pfeJi4M2plOQwMiOG 0gYmKjm3y4br4gqPMHPpgk1NnYBkzsWkZwcXDQLT559c7JzFPHopUGy4z04JdQLhQvio EV5XVZzXOcBLXkyUAB9aSCxtlnD/+WLJ2jnIcFzyXxND6UPg73kt5msiXX+Ktedidu4q dUZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTUn0yw6; 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 f7si4365401ioj.68.2021.08.19.14.44.58; Thu, 19 Aug 2021 14:45:10 -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=YTUn0yw6; 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 S233743AbhHSVnz (ORCPT + 99 others); Thu, 19 Aug 2021 17:43:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhHSVny (ORCPT ); Thu, 19 Aug 2021 17:43:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B86860EB5; Thu, 19 Aug 2021 21:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629409397; bh=Qis+W6zkQTZYe1xg6ZIKtAmEgvOKVtPfN5JHB97wMwQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=YTUn0yw6nUpw51PPvGczp49OOM+H1/c0m9xuwthLJuMkJqgdjYyHhxg8yOVhLoMhp VQ+kOA2nK3nhlvsSZkMrnAmapLGmZO5D9b5U+9pjr0wEXPLMr89NHRfDOeTICElwOR UDLw9ONtcKXd+UOZ+28FEdQmSXsWLjD6eQtInZHGtle5q5vbJScMkDjxRegKOnVTsA DzTXn6ZIpdre07HZcF0GF/Cg/1+MxL9XJ4erYKgPyBE7EJV0zvxUGYBus1fbx8iV+b 29BaTatgVsRYZK0KFkT7pKy3feYPjYRPQBD3IfHS/hePE0iNlBCAfro/UuzVtKP44L vA+TnCI/ui3iA== Message-ID: <639d90212662cf5cdf80c71bbfec95907c70114a.camel@kernel.org> Subject: Re: Removing Mandatory Locks From: Jeff Layton To: Linus Torvalds Cc: "Eric W. Biederman" , Matthew Wilcox , Andy Lutomirski , David Laight , David Hildenbrand , Linux Kernel Mailing List , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Al Viro , Alexey Dobriyan , Steven Rostedt , "Peter Zijlstra (Intel)" , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Petr Mladek , Sergey Senozhatsky , Andy Shevchenko , Rasmus Villemoes , Kees Cook , Greg Ungerer , Geert Uytterhoeven , Mike Rapoport , Vlastimil Babka , Vincenzo Frascino , Chinwen Chang , Michel Lespinasse , Catalin Marinas , Huang Ying , Jann Horn , Feng Tang , Kevin Brodsky , Michael Ellerman , Shawn Anastasio , Steven Price , Nicholas Piggin , Christian Brauner , Jens Axboe , Gabriel Krisman Bertazi , Peter Xu , Suren Baghdasaryan , Shakeel Butt , Marco Elver , Daniel Jordan , Nicolas Viennot , Thomas Cedeno , Collin Fijalkovich , Michal Hocko , Miklos Szeredi , Chengguang Xu , Christian =?ISO-8859-1?Q?K=F6nig?= , "linux-unionfs@vger.kernel.org" , Linux API , the arch/x86 maintainers , "" , Linux-MM , Florian Weimer , Michael Kerrisk Date: Thu, 19 Aug 2021 17:43:12 -0400 In-Reply-To: References: <20210812084348.6521-1-david@redhat.com> <87o8a2d0wf.fsf@disp2133> <60db2e61-6b00-44fa-b718-e4361fcc238c@www.fastmail.com> <87lf56bllc.fsf@disp2133> <87eeay8pqx.fsf@disp2133> <5b0d7c1e73ca43ef9ce6665fec6c4d7e@AcuMS.aculab.com> <87h7ft2j68.fsf@disp2133> <87k0kkxbjn.fsf_-_@disp2133> <0c2af732e4e9f74c9d20b09fc4b6cbae40351085.camel@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.40.3 (3.40.3-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-08-19 at 13:31 -0700, Linus Torvalds wrote: > On Thu, Aug 19, 2021 at 1:18 PM Jeff Layton wrote: > > > > Now that I think about it a little more, I actually did get one > > complaint a few years ago: > > > > Someone had upgraded from an earlier distro that supported the -o mand > > mount option to a later one that had disabled it, and they had an (old) > > fstab entry that specified it. > > Hmm. We might be able to turn the "return -EINVAL" into just a warning. > > Yes, yes, currently if you turn off CONFIG_MANDATORY_FILE_LOCKING, we > already do that > > VFS: "mand" mount option not supported > > warning print, but then we fail the mount. > > If CONFIG_MANDATORY_FILE_LOCKING goes away entirely, it might make > sense to turn that warning into something bigger, but then let the > mount continue - since now that "mand" flag would be purely a legacy > thing. > > And yes, if we do that, we'd want the warning to be a big ugly thing, > just to make people very aware of it happening. Right now it's a > one-liner that is easy to miss, and the "oh, the mount failed" is the > thing that hopefully informs people about the fact that they need to > enable CONFIG_MANDATORY_FILE_LOCKING. > > The logic being that if you can no longer enable mandatory locking in > the kernel, the current hard failure seems overly aggressive (and > might cause boot failures and inability to fix/report things when it > possibly keeps you from using the system at all). > What sort of big, ugly warning did you have in mind? I'm fine with that general approach though and will plan to roll that change into the patch I'm testing. Thanks, -- Jeff Layton