]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
VFS: add start_creating_killable() and start_removing_killable()
authorNeilBrown <neil@brown.name>
Thu, 13 Nov 2025 00:18:32 +0000 (11:18 +1100)
committerChristian Brauner <brauner@kernel.org>
Fri, 14 Nov 2025 12:15:57 +0000 (13:15 +0100)
commitff7c4ea11a05c886f018fff4a4d4f4d68d951e25
tree6e9f0cad3d759b375d99ca95e8ade9a52175d108
parent7bb1eb45e43c4730cbc5a48b9e9295049fccdacb
VFS: add start_creating_killable() and start_removing_killable()

These are similar to start_creating() and start_removing(), but allow a
fatal signal to abort waiting for the lock.

They are used in btrfs for subvol creation and removal.

btrfs_may_create() no longer needs IS_DEADDIR() and
start_creating_killable() includes that check.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20251113002050.676694-10-neilb@ownmail.net
Tested-by: syzbot@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/btrfs/ioctl.c
fs/namei.c
include/linux/namei.h