summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-bitmap.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-03-18 17:36:24 -0700
committerJens Axboe <axboe@kernel.dk>2018-03-18 20:15:20 -0600
commit27a40ab9269e79b55672312b324f8f29d94463d4 (patch)
tree82fd33e12b58e2ac79f5146984be7e02cd62f62a /drivers/md/md-bitmap.c
parentdf2b94313ae5b4f60d49e01d4dff5acb4c2757cf (diff)
downloadop-kernel-dev-27a40ab9269e79b55672312b324f8f29d94463d4.zip
op-kernel-dev-27a40ab9269e79b55672312b324f8f29d94463d4.tar.gz
bcache: add backing_request_endio() for bi_end_io
In order to catch I/O error of backing device, a separate bi_end_io call back is required. Then a per backing device counter can record I/O errors number and retire the backing device if the counter reaches a per backing device I/O error limit. This patch adds backing_request_endio() to bcache backing device I/O code path, this is a preparation for further complicated backing device failure handling. So far there is no real code logic change, I make this change a separate patch to make sure it is stable and reliable for further work. Changelog: v2: Fix code comments typo, remove a redundant bch_writeback_add() line added in v4 patch set. v1: indeed this is new added in this patch set. [mlyle: truncated commit subject] Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Michael Lyle <mlyle@lyle.org> Cc: Junhui Tang <tang.junhui@zte.com.cn> Cc: Michael Lyle <mlyle@lyle.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md-bitmap.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud