aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/request.c
diff options
context:
space:
mode:
authorTang Junhui <tang.junhui.linux@gmail.com>2018-10-08 08:41:08 -0400
committerJens Axboe <axboe@kernel.dk>2018-10-08 10:19:39 -0400
commit502b291568fc7faf1ebdb2c2590f12851db0ff76 (patch)
treefa25b571251470a91017d62cf26ffee35c083045 /drivers/md/bcache/request.c
parent7a55948d38eb9b274cbbdd56dc1dd4b96ebfbe04 (diff)
bcache: trace missed reading by cache_missed
Missed reading IOs are identified by s->cache_missed, not the s->cache_miss, so in trace_bcache_read() using trace_bcache_read to identify whether the IO is missed or not. Signed-off-by: Tang Junhui <tang.junhui.linux@gmail.com> Cc: stable@vger.kernel.org Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r--drivers/md/bcache/request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 51be355a3309..4946d486f734 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -850,7 +850,7 @@ static void cached_dev_read_done_bh(struct closure *cl)
850 850
851 bch_mark_cache_accounting(s->iop.c, s->d, 851 bch_mark_cache_accounting(s->iop.c, s->d,
852 !s->cache_missed, s->iop.bypass); 852 !s->cache_missed, s->iop.bypass);
853 trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass); 853 trace_bcache_read(s->orig_bio, !s->cache_missed, s->iop.bypass);
854 854
855 if (s->iop.status) 855 if (s->iop.status)
856 continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq); 856 continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq);