projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a55948
)
bcache: trace missed reading by cache_missed
author
Tang Junhui
<
[email protected]
>
Mon, 8 Oct 2018 12:41:08 +0000
(20:41 +0800)
committer
Jens Axboe
<
[email protected]
>
Mon, 8 Oct 2018 14:19:39 +0000
(08:19 -0600)
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 <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Coly Li <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
drivers/md/bcache/request.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/request.c
b/drivers/md/bcache/request.c
index 51be355a3309fe993e4e14c0c5ac8d3e9955b45c..4946d486f734385cbc5ed38cd2fbeeab004eb0b1 100644
(file)
--- 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)
bch_mark_cache_accounting(s->iop.c, s->d,
!s->cache_missed, s->iop.bypass);
- trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass);
+ trace_bcache_read(s->orig_bio, !s->cache_miss
ed
, s->iop.bypass);
if (s->iop.status)
continue_at_nobarrier(cl, cached_dev_read_error, bcache_wq);