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:
f680474
)
blk-wbt: move wbt_clear_stat to common place in wbt_done
author
weiping zhang
<zhangweiping@didichuxing.com>
Thu, 23 Nov 2017 13:39:55 +0000
(21:39 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 24 Nov 2017 05:00:18 +0000
(22:00 -0700)
wbt_done call wbt_clear_stat no matter current stat was tracked
or not, move it to common place.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c
patch
|
blob
|
history
diff --git
a/block/blk-wbt.c
b/block/blk-wbt.c
index ec903532a5d1c3cdc80fbda6247cd951db253fee..19faecc5f8f6f04250000877f141880f273d023a 100644
(file)
--- a/
block/blk-wbt.c
+++ b/
block/blk-wbt.c
@@
-178,12
+178,11
@@
void wbt_done(struct rq_wb *rwb, struct blk_issue_stat *stat)
if (wbt_is_read(stat))
wb_timestamp(rwb, &rwb->last_comp);
- wbt_clear_state(stat);
} else {
WARN_ON_ONCE(stat == rwb->sync_cookie);
__wbt_done(rwb, wbt_stat_to_mask(stat));
- wbt_clear_state(stat);
}
+ wbt_clear_state(stat);
}
/*