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

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 does and avoids any confusion on who
needs to handle errors.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/volumes.c