[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230209201116.579809-5-shikemeng@huaweicloud.com>
Date: Fri, 10 Feb 2023 04:11:13 +0800
From: Kemeng Shi <shikemeng@...weicloud.com>
To: axboe@...nel.dk, hch@....de, jack@...e.cz
Cc: andriy.shevchenko@...ux.intel.com, qiulaibin@...wei.com,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 4/7] blk-mq: remove unnecessary bit clear in __blk_mq_alloc_requests_batch
Bits in tag_mask will not be accessed after it's cleared. So we can remove
this unnecessary clear.
Signed-off-by: Kemeng Shi <shikemeng@...weicloud.com>
---
block/blk-mq.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 89b4dd81ae17..6014d9b5e296 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -456,7 +456,6 @@ __blk_mq_alloc_requests_batch(struct blk_mq_alloc_data *data,
continue;
tag = tag_offset + i;
prefetch(tags->static_rqs[tag]);
- tag_mask &= ~(1UL << i);
rq = blk_mq_rq_ctx_init(data, tags, tag, alloc_time_ns);
rq_list_add(data->cached_rq, rq);
nr++;
--
2.30.0
Powered by blists - more mailing lists