]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: free cached state outside critical section in wait_extent_bit()
authorFilipe Manana <fdmanana@suse.com>
Mon, 16 Mar 2026 11:38:36 +0000 (11:38 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:04 +0000 (18:56 +0200)
commit0611e2ad02b3a6ede4f1e26b792a80261e63a28e
treec5a218d5ad46de747bf556a888c844f4d5cf2045
parent87f5c3139ee34e0642584cff86298ef4b9a827ef
btrfs: free cached state outside critical section in wait_extent_bit()

There's no need to free the cached extent state record while holding the
io tree's spinlock, it's just making the critical section longer than it
needs to be. So just do it after unlocking the io tree.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c