]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
block, bfq: fix operator in BFQQ_TOTALLY_SEEKY
authorPaolo Valente <paolo.valente@linaro.org>
Sat, 22 Jun 2019 20:44:16 +0000 (22:44 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Jun 2019 17:38:08 +0000 (11:38 -0600)
By mistake, there is a '&' instead of a '==' in the definition of the
macro BFQQ_TOTALLY_SEEKY. This commit replaces the wrong operator with
the correct one.

Fixes: 7074f076ff15 ("block, bfq: do not tag totally seeky queues as soft rt")
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c

index f8d430f88d25c25245adb81e7e775e08dd4b7cbc..f9269ae6da9c77963b8a2f1ccd93ed18fc0c53f6 100644 (file)
@@ -240,7 +240,7 @@ static struct kmem_cache *bfq_pool;
  * containing only random (seeky) I/O are prevented from being tagged
  * as soft real-time.
  */
-#define BFQQ_TOTALLY_SEEKY(bfqq)       (bfqq->seek_history & -1)
+#define BFQQ_TOTALLY_SEEKY(bfqq)       (bfqq->seek_history == -1)
 
 /* Min number of samples required to perform peak-rate update */
 #define BFQ_RATE_MIN_SAMPLES   32