From: Jeff Layton <jlayton@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>,
Christian Brauner <brauner@kernel.org>
Cc: Josef Bacik <josef@toxicpanda.com>,
amir73il@gmail.com, linux-fsdevel@vger.kernel.org,
viro@zeniv.linux.org.uk, jack@suse.cz, david@fromorbit.com,
hch@lst.de
Subject: Re: [PATCH] fs: don't block i_writecount during exec
Date: Fri, 31 May 2024 14:08:31 -0400 [thread overview]
Message-ID: <a557064e2c833739d2cf74741454dabb73877f63.camel@kernel.org> (raw)
In-Reply-To: <CAHk-=wibjzPz+PQiBpbonJgcuMCUWj2hYtwNCdUF-D7+zSwLag@mail.gmail.com>
On Fri, 2024-05-31 at 08:40 -0700, Linus Torvalds wrote:
> On Fri, 31 May 2024 at 06:05, Christian Brauner <brauner@kernel.org>
> wrote:
> >
> > Back in 2021 we already discussed removing deny_write_access() for
> > executables. Back then I was hesistant because I thought that this
> > might
> > cause issues in userspace. But even back then I had started taking
> > some
> > notes on what could potentially depend on this and I didn't come up
> > with
> > a lot so I've changed my mind and I would like to try this.
>
> Ack. Let's try it and see if anybody notices. Judging by past
> performance, nobody will, but...
>
> I still think we should strive to remove the underlying i_writecount
> entirely, but yes, even if we're eventually able to do that, it
> should
> be done in small steps, and this is the obvious first one.
>
>
FWIW: file leases also use i_writecount and i_readcount(...see
check_conflicting_open()), but they don't rely on the semantics for
blocking writes. They're just interested in whether the inode is open
for read or write anywhere.
--
Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2024-05-31 18:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 20:41 [PATCH][RFC] fs: add levels to inode write access Josef Bacik
2024-05-29 22:00 ` Jeff Layton
2024-05-30 1:14 ` Matthew Wilcox
2024-05-30 10:32 ` Christian Brauner
2024-05-30 12:57 ` Amir Goldstein
2024-05-30 14:58 ` Josef Bacik
2024-05-30 15:23 ` Christian Brauner
2024-05-30 15:49 ` Linus Torvalds
2024-05-31 10:02 ` Christian Brauner
2024-05-31 12:32 ` Christian Brauner
2024-05-31 13:01 ` [PATCH] fs: don't block i_writecount during exec Christian Brauner
2024-05-31 15:40 ` Linus Torvalds
2024-05-31 18:08 ` Jeff Layton [this message]
2024-05-31 22:08 ` Josef Bacik
2024-06-03 13:52 ` (subset) " Christian Brauner
2024-06-06 12:45 ` Aishwarya TCV
2024-06-06 15:37 ` Mark Brown
2024-06-06 16:53 ` Josef Bacik
2024-06-06 17:33 ` Mark Brown
2024-06-06 17:49 ` Mark Brown
2024-08-07 9:59 ` [LTP] " Tudor Ambarus
2024-08-07 9:59 ` Tudor Ambarus
2024-09-04 17:04 ` Jann Horn
2024-09-05 7:38 ` Roberto Sassu
2024-05-31 13:09 ` [PATCH][RFC] fs: add levels to inode write access Amir Goldstein
2024-05-31 14:50 ` Christian Brauner
2024-05-31 15:47 ` Matthew Wilcox
2024-05-31 22:14 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a557064e2c833739d2cf74741454dabb73877f63.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=david@fromorbit.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=josef@toxicpanda.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.