Re: ->atomic_open() fun (was Re: [RFC] a possible way of reducing the PITA of ->d_name audits)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Sept 2025 at 07:49, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> While we are at it, Miklos mentioned some plans for changing ->atomic_open()
> calling conventions.  Might be a good time to revisit that...  Miklos,
> could you give a braindump on those plans?

[Cc: Bernd]

What we want is ->atomic_open() being able to do an atomic revalidate
+ open (cached positive) case.  This is the only case currently that
can't be done with a single ATOMIC_OPEN request but needs two
roundtrips to the server.

The ->atomic_open() interface shouldn't need any changes, since it's
already allowed to use a different dentry from the supplied one.

Based on (flags & LOOKUP_OPEN) ->revalidate() needs to tell the caller
that it's expecting the subsequent ->atomic_open() call to do the
actual revalidation.  The proposed interface for that was to add a
D_REVALIDATE_ATOMIC =  2 constant to use as a return value in this
case.

Thanks,
Miklos




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux