]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: handle allocation failure in btrfs_wq_submit_bio gracefully
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2022 10:04:12 +0000 (12:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commitce2b47625820998cb6fc9c19daaf921b6a7d8945
treeb601226eadb4e20278177a2dc1603fcbbb93a7d3
parentc501be615d9ebc2198cc0db46c925667c05edb61
btrfs: handle allocation failure in btrfs_wq_submit_bio gracefully

btrfs_wq_submit_bio is used for writeback under memory pressure.
Instead of failing the I/O when we can't allocate the async_submit_bio,
just punt back to the synchronous submission path.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/inode.c