]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: locking: remove all the blocking helpers
authorJosef Bacik <josef@toxicpanda.com>
Thu, 20 Aug 2020 15:46:10 +0000 (11:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:25:04 +0000 (13:25 +0100)
commit1817e3e849f6578c479e011fa898dcdc6e3dff61
tree86b61041d9cf8c1dbee42137da336b3c8e9ca72b
parent4da6be8eb61894978c4bbf48a11a3be5a4b0c404
btrfs: locking: remove all the blocking helpers

[ Upstream commit ac5887c8e013d6754d36e6d51dc03448ee0b0065 ]

Now that we're using a rw_semaphore we no longer need to indicate if a
lock is blocking or not, nor do we need to flip the entire path from
blocking to spinning.  Remove these helpers and all the places they are
called.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 44f52bbe96df ("btrfs: fix use-after-free when COWing tree bock and tracing is enabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
15 files changed:
fs/btrfs/backref.c
fs/btrfs/ctree.c
fs/btrfs/delayed-inode.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/locking.c
fs/btrfs/locking.h
fs/btrfs/qgroup.c
fs/btrfs/ref-verify.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c
fs/btrfs/tree-defrag.c
fs/btrfs/tree-log.c