summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-linear.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-05-03 18:51:34 +0800
committerJens Axboe <axboe@kernel.dk>2018-05-03 08:35:12 -0600
commitbf78980fcc58bad2d61858ce342153a3dd097aa0 (patch)
treea3a4a141df58810c02dadc33dbe848f65d451310 /drivers/md/dm-linear.c
parent6147305c73e4511ca1a975b766b97a779d442567 (diff)
downloadlinux-bf78980fcc58bad2d61858ce342153a3dd097aa0.tar.bz2
bcache: count backing device I/O error for writeback I/O
Commit c7b7bd07404c5 ("bcache: add io_disable to struct cached_dev") counts backing device I/O requets and set dc->io_disable to true if error counters exceeds dc->io_error_limit. But it only counts I/O errors for regular I/O request, neglects errors of write back I/Os when backing device is offline. This patch counts the errors of writeback I/Os, in dirty_endio() if bio->bi_status is not 0, it means error happens when writing dirty keys to backing device, then bch_count_backing_io_errors() is called. By this fix, even there is no reqular I/O request coming, if writeback I/O errors exceed dc->io_error_limit, the bcache device may still be stopped for the broken backing device. Fixes: c7b7bd07404c5 ("bcache: add io_disable to struct cached_dev") Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-linear.c')
0 files changed, 0 insertions, 0 deletions