]> Gentwo Git Trees - linux/.git/commit
btrfs: process ticket outside global reserve critical section
authorFilipe Manana <fdmanana@suse.com>
Fri, 17 Oct 2025 16:34:36 +0000 (17:34 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:12:37 +0000 (22:12 +0100)
commit189db2510569c0f1cc7eefb583c48a36d373cae3
tree31a029483d309a57be8305cefca92f8aa75be6a7
parent5ca7725ddfc5b7a1e5b87ba3cb489b3cd052faab
btrfs: process ticket outside global reserve critical section

In steal_from_global_rsv() there's no need to process the ticket inside
the critical section of the global reserve. Move the ticket processing to
happen after the critical section. This helps reduce contention on the
global reserve's spinlock.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/space-info.c