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>
This commit is contained in:
@@ -649,7 +649,7 @@ static bool kyber_has_work(struct blk_mq_hw_ctx *hctx)
|
|||||||
if (!list_empty_careful(&khd->rqs[i]))
|
if (!list_empty_careful(&khd->rqs[i]))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return sbitmap_any_bit_set(&hctx->ctx_map);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define KYBER_LAT_SHOW_STORE(op) \
|
#define KYBER_LAT_SHOW_STORE(op) \
|
||||||
|
|||||||
Reference in New Issue
Block a user