]> git.hungrycats.org Git - linux/commit
make cursors NORCU
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 5 May 2026 04:20:19 +0000 (00:20 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Jun 2026 04:34:56 +0000 (00:34 -0400)
commit3df5153c5f123d6018c82a24341ccd99c79d64a0
tree3ebbf62a6f550305edc3d3e4aad33887d590db04
parent144bef84e1cfadfe100c6728593ea9838853f347
make cursors NORCU

All it requires is making sure that d_walk() will skip *all*
CURSOR dentries, even if somebody passes it one as an argument.

Cursors are negative and unhashed all along, never get added to
LRU or to shrink lists and no RCU references via ->d_sib are
possible for those - dentry_unlist() makes sure that no killed
dentry has ->d_sib.next left pointing to a cursor.

Seeing that a cursor is allocated every time we open a directory
on autofs, debugfs, devpts, etc., avoiding an RCU delay when such
opened files get closed is attractive...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c