]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: do not return errors from btrfs_submit_dio_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jun 2022 10:04:13 +0000 (12:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:40 +0000 (17:45 +0200)
commit0a126b50b565a3433b06283c374ddc3a761dadd5
tree22081983b659a91786c3e845891fd0f6537cb767
parentce2b47625820998cb6fc9c19daaf921b6a7d8945
btrfs: do not return errors from btrfs_submit_dio_bio

Always consume the bio and call the end_io handler on error instead of
returning an error and letting the caller handle it.  This matches what
the block layer submission and the other btrfs bio submission handlers do
and avoids any confusion on who needs to handle errors.

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/inode.c