mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
blk-mq: remove wrong 'unlikely' check
When dispatch_rq_from_ctx is called, in the vast majority of cases the ctx->rq_list is not empty. Signed-off-by: huhai <huhai@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
68fa9dbe08
commit
b4f6f38d9f
@ -1036,7 +1036,7 @@ static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr,
|
||||
struct blk_mq_ctx *ctx = hctx->ctxs[bitnr];
|
||||
|
||||
spin_lock(&ctx->lock);
|
||||
if (unlikely(!list_empty(&ctx->rq_list))) {
|
||||
if (!list_empty(&ctx->rq_list)) {
|
||||
dispatch_data->rq = list_entry_rq(ctx->rq_list.next);
|
||||
list_del_init(&dispatch_data->rq->queuelist);
|
||||
if (list_empty(&ctx->rq_list))
|
||||
|
Loading…
Reference in New Issue
Block a user