]> Gentwo Git Trees - linux/.git/commit
btrfs: relax btrfs_inode::ordered_tree_lock IRQ locking context
authorQu Wenruo <wqu@suse.com>
Thu, 23 Oct 2025 22:02:41 +0000 (08:32 +1030)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:42:21 +0000 (22:42 +0100)
commit39bc80216a3656d54d65cdda994f406aeb27c3da
tree72f2e839011e667d825f8fc430a0fa318059b2d1
parent4bbdce84175db7ff0dfaa82e960c7488c6cb0bcf
btrfs: relax btrfs_inode::ordered_tree_lock IRQ locking context

We used IRQ version of spinlock for ordered_tree_lock, as
btrfs_finish_ordered_extent() can be called in end_bbio_data_write()
which was in IRQ context.

However since we're moving all the btrfs_bio::end_io() calls into task
context, there is no more need to support IRQ context thus we can relax
to regular spin_lock()/spin_unlock() for btrfs_inode::ordered_tree_lock.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/tree-log.c