提交 62d772fa 编写于 作者: W weiping zhang 提交者: Jens Axboe

blk-wbt: move wbt_clear_stat to common place in wbt_done

wbt_done call wbt_clear_stat no matter current stat was tracked
or not, move it to common place.
Signed-off-by: Nweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 f6804743
...@@ -178,12 +178,11 @@ void wbt_done(struct rq_wb *rwb, struct blk_issue_stat *stat) ...@@ -178,12 +178,11 @@ void wbt_done(struct rq_wb *rwb, struct blk_issue_stat *stat)
if (wbt_is_read(stat)) if (wbt_is_read(stat))
wb_timestamp(rwb, &rwb->last_comp); wb_timestamp(rwb, &rwb->last_comp);
wbt_clear_state(stat);
} else { } else {
WARN_ON_ONCE(stat == rwb->sync_cookie); WARN_ON_ONCE(stat == rwb->sync_cookie);
__wbt_done(rwb, wbt_stat_to_mask(stat)); __wbt_done(rwb, wbt_stat_to_mask(stat));
wbt_clear_state(stat);
} }
wbt_clear_state(stat);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册