Coly Li
bf78980fcc
bcache: count backing device I/O error for writeback I/O
...
Commit c7b7bd0740 ("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: c7b7bd0740 ("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 >
2018-05-03 08:35:12 -06:00
..
2018-04-12 11:04:35 -07:00
2018-04-03 17:42:25 -07:00
2018-04-19 13:41:49 -04:00
2018-03-13 18:16:38 +01:00
2018-04-23 14:44:24 +02:00
2018-03-13 18:47:47 +02:00
2018-04-25 21:05:15 -07:00
2018-04-01 21:43:02 +03:00
2018-04-06 18:31:06 -07:00
2018-04-18 08:21:32 -06:00
2018-04-21 21:20:48 -07:00
2018-04-13 15:51:06 -07:00
2018-04-19 13:21:35 +02:00
2018-04-10 08:40:45 +02:00
2018-04-09 11:54:57 +02:00
2018-04-07 19:04:02 +09:00
2018-04-19 15:11:50 -07:00
2018-04-10 12:14:37 -07:00
2018-04-05 14:21:13 -07:00
2018-04-04 20:07:20 -07:00
2018-04-13 16:32:16 -07:00
2018-03-27 09:51:22 +02:00
2018-03-19 14:18:22 -05:00
2018-03-14 19:11:01 +01:00
2018-04-05 21:03:42 -07:00
2018-04-22 17:14:29 -07:00
2018-04-19 09:25:15 +02:00
2018-03-19 16:31:07 +01:00
2018-04-09 11:42:31 -07:00
2018-04-09 19:59:54 -07:00
2018-04-04 20:07:20 -07:00
2018-04-11 23:33:46 +02:00
2018-04-05 14:27:02 -07:00
2018-04-05 09:51:41 -07:00
2018-04-06 17:35:43 -07:00
2018-04-13 16:20:36 -07:00
2018-04-11 18:50:41 -07:00
2018-04-11 18:50:41 -07:00
2018-04-12 21:46:10 -04:00
2018-03-20 20:28:00 +01:00
2018-03-29 17:29:09 -06:00
2018-04-07 12:08:19 -07:00
2018-03-20 11:15:54 +08:00
2018-03-19 14:20:24 -05:00
2018-05-03 08:35:12 -06:00
2018-04-10 12:09:27 -07:00
2018-03-07 16:52:19 +01:00
2018-04-18 23:37:25 -04:00
2018-04-10 22:25:07 -07:00
2018-04-12 10:21:19 -07:00
2018-04-20 10:41:31 -07:00
2018-04-11 16:39:34 -07:00
2018-04-24 16:17:59 -04:00
2018-04-19 15:10:56 -07:00
2018-04-12 09:58:27 -06:00
2018-04-04 20:07:20 -07:00
2018-04-15 17:21:30 -07:00
2018-03-29 15:07:48 -04:00
2018-03-27 18:52:22 +02:00
2018-04-04 20:07:20 -07:00
2018-04-11 08:46:50 -05:00
2018-04-09 09:26:36 -07:00
2018-04-05 21:29:35 -07:00
2018-04-05 21:21:08 -07:00
2018-04-05 09:51:41 -07:00
2018-04-13 16:20:36 -07:00
2018-04-05 21:21:08 -07:00
2018-03-19 00:02:24 +01:00
2018-03-14 17:53:06 +01:00
2018-04-13 15:46:21 -07:00
2018-04-20 17:18:35 -07:00
2018-03-28 10:33:53 +08:00
2018-04-05 22:53:16 -07:00
2018-03-27 11:03:43 +02:00
2018-03-27 21:54:37 -07:00
2018-04-10 10:22:27 -07:00
2018-04-22 14:42:32 -04:00
2018-04-01 20:07:00 -04:00
2018-04-19 00:04:10 -04:00
2018-03-15 18:07:46 +01:00
2018-03-15 17:55:52 +01:00
2018-04-13 15:51:06 -07:00
2018-04-03 12:06:21 -07:00
2018-03-13 18:48:29 +02:00
2018-04-11 10:28:39 -07:00
2018-04-19 00:41:03 -04:00
2018-03-06 11:03:55 +01:00
2018-04-13 14:11:53 +08:00
2018-03-14 14:26:38 +03:00
2018-04-09 09:04:10 -07:00
2018-03-06 09:57:17 -08:00
2018-04-07 11:11:41 -07:00
2018-03-09 09:31:26 -08:00
2018-04-06 19:44:27 -07:00
2018-04-11 10:54:06 -04:00
2018-04-10 10:20:00 -07:00
2018-04-11 18:58:27 -07:00
2018-03-14 14:58:50 +01:00
2018-04-16 10:22:40 +02:00
2018-04-20 08:36:04 -07:00
2018-03-19 10:26:46 +01:00
2018-03-29 13:38:10 +03:00