Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nfsd: switch purge_old() to use start_removing_noperm()

Rather than explicit locking, use the start_removing_noperm() and
end_removing() wrappers.
This was not done with other start_removing changes due to conflicting
in-flight patches.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-8-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

NeilBrown and committed by
Christian Brauner
6cb34119 c4573e18

+2 -4
+2 -4
fs/nfsd/nfs4recover.c
··· 352 352 if (nfs4_has_reclaimed_state(name, nn)) 353 353 goto out_free; 354 354 355 - inode_lock_nested(d_inode(parent), I_MUTEX_PARENT); 356 - child = lookup_one(&nop_mnt_idmap, &QSTR(cname), parent); 355 + child = start_removing_noperm(parent, &QSTR(cname)); 357 356 if (!IS_ERR(child)) { 358 357 status = vfs_rmdir(&nop_mnt_idmap, d_inode(parent), child, NULL); 359 358 if (status) 360 359 printk("failed to remove client recovery directory %pd\n", 361 360 child); 362 - dput(child); 363 361 } 364 - inode_unlock(d_inode(parent)); 362 + end_removing(child); 365 363 366 364 out_free: 367 365 kfree(name.data);