]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
blk-wbt: don't throttle discard or write zeroes
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Dec 2016 13:19:06 +0000 (14:19 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 9 Dec 2016 15:29:35 +0000 (08:29 -0700)
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 <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-wbt.c

index d500e43da5d9ccdf2476107ac6fd69da3e2636c7..6e82769f4042c2f57af7976b1b7b4342eea1306d 100644 (file)
@@ -575,10 +575,9 @@ static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *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 ||
-                               op == REQ_OP_WRITE_ZEROES))
+       if (op != REQ_OP_WRITE)
                return false;
 
        /*