Re: [RFC PATCH v2 18/18] struct filename ->refcnt doesn't need to be atomic

Paul Moore <[email protected]>
Newsgroups org.kernel.vger.audit,org.kernel.vger.io-uring,org.kernel.vger.linux-fsdevel
Message-ID <CAHC9VhQ4Mh=UYYFw83RYEG6VfcNpx9QSXdQbBgY0WG0Rb7a_9Q@mail.gmail.com>
On Sat, Nov 29, 2025 at 12:01 PM Al Viro <[email protected]> wrote:
>
> ... or visible outside of audit, really.  Note that references
> held in delayed_filename always have refcount 1, and from the
> moment of complete_getname() or equivalent point in getname...()
> there won't be any references to struct filename instance left
> in places visible to other threads.
>
> Signed-off-by: Al Viro <[email protected]>
> ---
>  fs/namei.c         | 10 +++++-----
>  include/linux/fs.h |  8 +-------
>  kernel/auditsc.c   |  6 ++++++
>  3 files changed, 12 insertions(+), 12 deletions(-)

Acked-by: Paul Moore <[email protected]>

-- 
paul-moore.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.