]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't double-defer bio completions for compressed reads
authorChristoph Hellwig <hch@lst.de>
Thu, 26 May 2022 07:36:37 +0000 (09:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:33 +0000 (17:45 +0200)
commit9b5ef4e7dec7cc71e53e56a63708ee88328f650f
tree10c8b4497f6d5ebfc27d97524b844791950602c8
parent48f3a5f035b741f5713ee196c334a072e906ab92
btrfs: don't double-defer bio completions for compressed reads

The bio completion handler of the bio used for the compressed data is
already run in a workqueue using btrfs_bio_wq_end_io, so don't schedule
the completion of the original bio to the same workqueue again but just
execute it directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c