提交 be07e14f 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

blk-wbt: don't throttle discard or write zeroes

Both of these are metadata only commands that are not issued by the
writeback code and not directly relevant to the writeback bandwith.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 a897b666
...@@ -575,10 +575,9 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio) ...@@ -575,10 +575,9 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio)
const int op = bio_op(bio); const int op = bio_op(bio);
/* /*
* If not a WRITE (or a discard or write zeroes), do nothing * If not a WRITE, do nothing
*/ */
if (!(op == REQ_OP_WRITE || op == REQ_OP_DISCARD || if (op != REQ_OP_WRITE)
op == REQ_OP_WRITE_ZEROES))
return false; return false;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册