summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorhuhai <huhai@kylinos.cn>2018-05-22 17:39:34 +0800
committerJens Axboe <axboe@kernel.dk>2018-05-22 08:38:04 -0600
commitb4f6f38d9f85b6209ddaf81886b687da150dfd7b (patch)
tree764ade470931607eaf1dd865ce7c31af08a60383 /block/blk-mq.c
parent68fa9dbe0823e4f833ad8ddbb59c9ca279e84d57 (diff)
downloadlinux-0-day-b4f6f38d9f85b6209ddaf81886b687da150dfd7b.tar.gz
linux-0-day-b4f6f38d9f85b6209ddaf81886b687da150dfd7b.tar.xz
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 4cbfd784e837d..df928200b17e9 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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))