Skip to content

Commit be07e14

Browse files
Christoph Hellwigaxboe
authored andcommitted
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: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent a897b66 commit be07e14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

block/blk-wbt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,9 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio)
575575
const int op = bio_op(bio);
576576

577577
/*
578-
* If not a WRITE (or a discard or write zeroes), do nothing
578+
* If not a WRITE, do nothing
579579
*/
580-
if (!(op == REQ_OP_WRITE || op == REQ_OP_DISCARD ||
581-
op == REQ_OP_WRITE_ZEROES))
580+
if (op != REQ_OP_WRITE)
582581
return false;
583582

584583
/*

0 commit comments

Comments
 (0)