Skip to content

Commit 63ba8e3

Browse files
Ming Leiaxboe
authored andcommitted
block: kyber: check if there are requests in ctx in kyber_has_work()
There may be request in sw queue, and not fetched to domain queue yet, so check it in kyber_has_work(). Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 7930d0a commit 63ba8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/kyber-iosched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ static bool kyber_has_work(struct blk_mq_hw_ctx *hctx)
649649
if (!list_empty_careful(&khd->rqs[i]))
650650
return true;
651651
}
652-
return false;
652+
return sbitmap_any_bit_set(&hctx->ctx_map);
653653
}
654654

655655
#define KYBER_LAT_SHOW_STORE(op) \

0 commit comments

Comments
 (0)