[PATCH 4/7] blk-mq: remove unnecessary bit clear in __blk_mq_alloc_requests_batch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux