]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bcache: don't write back data if reading it failed
authorMichael Lyle <mlyle@lyle.org>
Fri, 13 Oct 2017 23:35:35 +0000 (16:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Oct 2017 15:07:26 +0000 (09:07 -0600)
commit5fa89fb9a86bcc0f0b3f21ab6087a8a4170dcd2c
treeb6c92d9d66ba6b6778b1860b431354892cd0f95b
parent238501027abf0386fa5f5dcaf589f406eb187bc3
bcache: don't write back data if reading it failed

If an IO operation fails, and we didn't successfully read data from the
cache, don't writeback invalid/partial data to the backing disk.

Signed-off-by: Michael Lyle <mlyle@lyle.org>
Reviewed-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/writeback.c