From: Christoph Hellwig Date: Fri, 9 Dec 2016 13:19:06 +0000 (+0100) Subject: blk-wbt: don't throttle discard or write zeroes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be07e14f96e3121483339a64d917fddb3b86ba98;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- diff --git a/block/blk-wbt.c b/block/blk-wbt.c index d500e43da5d9..6e82769f4042 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -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; /*