Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp878222pxb; Thu, 19 Aug 2021 13:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6b5jJoSG3yl8FFbrcKrfqxgvCkOnC3xuBx3mX/qAJhgNtX5deeDe1wECym2k4LbKe7kzy X-Received: by 2002:a17:906:3b50:: with SMTP id h16mr17748176ejf.140.1629405616659; Thu, 19 Aug 2021 13:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629405616; cv=none; d=google.com; s=arc-20160816; b=gPLJmRFUOLjGaf4y3i14cQJrq2vMSULZ8Y05xfh2r4Q2p+gQaH1XiS7iELwXNhiov5 pwkX5VIQLauZWiC/Lqi6F9zk0H+Z1PFNAzW6ZplMgKkTTjOFGqQahmTPHHYBqG9hj8Zn UD4Ut2jFkt6HUNcnlUpm/jyLwnftn5TUQWKCV/Ui3fjHuDt4JajUXhHdlndDBU4m3tkY lYi+HaIdJvE3GEy5woF7nF10wRcGAyjqdAR7f6KPakoiz0a2JmuGWZalCfO9xpZEc/zu Qc6DvrvnvmmhQB6++jZsDVPACCy2gXQWRwupZH3Gql/gToiZtIWfAF7MvF+ttOxwyqrG WKuQ== 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=JSRl6XnmOGLdmR851bn1ceo0KMOXukfn1cvOdweS6EE=; b=OtyfpjUVWLBp+C+9qo7E2B88bqXPqmLeWB+DIVK2BtShaacL0QivF27nRUjrcD7stE SGC6ux0DQZOL37nP3FF/UHiKoJjoi2rSJu2+ujRBBiMKCtmjZmA11pXnGakWMcnCskyO ua61tS1qjQsgZC5J+V6EYMa1JZUZD1FkHOnTQwz8KeBSltDAgAqtUH5JqfSEf5Wo1Xcb VuhnysddqvBiSMmyATEyUQLxsJ1+dJP/Epc2BILfQFFDn4xQsoyLbTO82H0MBNbHGBC9 JqnA/AOSL0X6K9vTnVt5L8mO0k8LAPq0HNym9DIdxaq4FFk/PF+dOzWDDZF6AQi1qYzc 1Pvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YxSNY3tc; 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 bl2si4429390ejb.55.2021.08.19.13.39.53; Thu, 19 Aug 2021 13:40:16 -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=@linux-foundation.org header.s=google header.b=YxSNY3tc; 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 S235239AbhHSUiM (ORCPT + 99 others); Thu, 19 Aug 2021 16:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234436AbhHSUiI (ORCPT ); Thu, 19 Aug 2021 16:38:08 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92FEEC061756 for ; Thu, 19 Aug 2021 13:37:31 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id lo4so15395379ejb.7 for ; Thu, 19 Aug 2021 13:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JSRl6XnmOGLdmR851bn1ceo0KMOXukfn1cvOdweS6EE=; b=YxSNY3tcB7ZEMZu0Z0uGdi8ar5s5xZlqAXYmvuLSL5Espa/B5SBqCqsJ9cmkN+bmLP rOw4J3P4KUQ5iMNyYm1z9LDNJp2brMQ3m6OAtitK1DaqnVDYf13di4+NSRR4Wkr/ONNL +zWGKJJrYWx1bmFzoHq6hrhbUfPi4rkOHip8U= 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=JSRl6XnmOGLdmR851bn1ceo0KMOXukfn1cvOdweS6EE=; b=e2Xa6JdmLbTPaPvZfLrQ7DP4nVJt1NOv+fBZdJ5PGJxc30TmxR85vpPxWg/aAHKWwD llXQWcL5bNXrOPoH8ZKszsV/g5FnzyDOe6cbt15Vwvm2+h24N8JlogCmj7nWUS8s0gC0 kvvUEfqvbPavniaSjSkfWs5p6CwgVY+TMe9fXi5ZDSZEBcqFDVhoWtUesA4KxnHx7WWm NJk50FSt0ulMMN5b9YSBjhic/y5nxo250lxd6KrKsSYnLiNyhoJH0SIsDQ3cejSKaOCQ T2HTVsHLjFafoNFUq6pvomqTPb011yPhj40SV0qpLsx74PtrUxquNub5G0mYktL2w88D NOkQ== X-Gm-Message-State: AOAM532SEvdO+u+V/omXqmSICJMkMBqAGLF5ZfrrQ+xGXrSahrV+I0zE m/elOJbDeAgUgnCccc2MN2CcR7tBm/0Af/zZtPA= X-Received: by 2002:a17:906:585a:: with SMTP id h26mr17858049ejs.31.1629405450110; Thu, 19 Aug 2021 13:37:30 -0700 (PDT) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com. [209.85.218.51]) by smtp.gmail.com with ESMTPSA id s7sm2357114edu.23.2021.08.19.13.37.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Aug 2021 13:37:29 -0700 (PDT) Received: by mail-ej1-f51.google.com with SMTP id d11so15384827eja.8 for ; Thu, 19 Aug 2021 13:37:29 -0700 (PDT) X-Received: by 2002:a2e:3004:: with SMTP id w4mr11952338ljw.465.1629405111331; Thu, 19 Aug 2021 13:31:51 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Linus Torvalds Date: Thu, 19 Aug 2021 13:31:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Removing Mandatory Locks To: Jeff Layton 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 , =?UTF-8?Q?Christian_K=C3=B6nig?= , "linux-unionfs@vger.kernel.org" , Linux API , "the arch/x86 maintainers" , "" , Linux-MM , Florian Weimer , Michael Kerrisk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Linus