diff options
author | Paolo Valente <paolo.valente@linaro.org> | 2019-06-22 16:44:16 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-25 13:38:08 -0400 |
commit | e6feaf215f07dd98d03ee783c9dd4c7f7e55b74d (patch) | |
tree | 355c0cfb6f51665f4b1a792b7cce1b6f5999191a | |
parent | 60c112b0ada09826cc4ae6a4e55df677f76f1313 (diff) |
block, bfq: fix operator in BFQQ_TOTALLY_SEEKY
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>
-rw-r--r-- | block/bfq-iosched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index f8d430f88d25..f9269ae6da9c 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c | |||
@@ -240,7 +240,7 @@ static struct kmem_cache *bfq_pool; | |||
240 | * containing only random (seeky) I/O are prevented from being tagged | 240 | * containing only random (seeky) I/O are prevented from being tagged |
241 | * as soft real-time. | 241 | * as soft real-time. |
242 | */ | 242 | */ |
243 | #define BFQQ_TOTALLY_SEEKY(bfqq) (bfqq->seek_history & -1) | 243 | #define BFQQ_TOTALLY_SEEKY(bfqq) (bfqq->seek_history == -1) |
244 | 244 | ||
245 | /* Min number of samples required to perform peak-rate update */ | 245 | /* Min number of samples required to perform peak-rate update */ |
246 | #define BFQ_RATE_MIN_SAMPLES 32 | 246 | #define BFQ_RATE_MIN_SAMPLES 32 |