Linux NFS development
 help / color / mirror / Atom feed
* try_break_deleg() and atomic_open()
@ 2026-05-11 22:21 NeilBrown
  2026-05-11 23:34 ` Jeff Layton
  0 siblings, 1 reply; 4+ messages in thread
From: NeilBrown @ 2026-05-11 22:21 UTC (permalink / raw)
  To: Jeff Layton; +Cc: linux-fsdevel, linux-nfs


Hi Jeff,
 quick question (I hope).
Should atomic_open() call try_break_deleg() on the directory
when a create is pending?

This seems a bit iffy because the VFS doesn't necessarily know if a
create will happen before it calls ->atomic_open, so it cannot know
if it needs to break the deleg or not.
So maybe the individual ->atomic_open functions should do it?

I'm looking at dentry_create() which calls atomic_open() is quite a
different way to how lookup_open() calls it.  I'd like to change
nfsd4 so it calls something a lot more like lookup_open() and in
looking at what I would need to change, delegated_inode stood out.

Thanks,
NeilBrown

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-12 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 22:21 try_break_deleg() and atomic_open() NeilBrown
2026-05-11 23:34 ` Jeff Layton
2026-05-12  3:52   ` NeilBrown
2026-05-12 10:52     ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox