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)
commit02bb5b72470facec78e03cdea9f01ca8c7fe7835
tree10c8b4497f6d5ebfc27d97524b844791950602c8
parentd34e123de1e66061051cd19e61b62fad6027fc4a
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