Skip to contentSkip to conversation

block: Remove extra part pointer NULLify in blk_rq_init()

PATCH Applied John Garry 2 participants 2 messages Nov 25, 2024 Block layer

lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 block: Remove extra part pointer NULLify in blk_rq_init()

The rq->part pointer is already NULLified in the memset() call, so - like for other pointers in rq - don't re-NULLify.

block/blk-mq.c +0 -1
index abdf44736e08..424239c075e2 100644
@@ -388,7 +388,6 @@ void blk_rq_init(struct request_queue *q, struct request *rq)
 	rq->tag = BLK_MQ_NO_TAG;
 	rq->internal_tag = BLK_MQ_NO_TAG;
 	rq->start_time_ns = blk_time_get_ns();
-	rq->part = NULL;
 	blk_crypto_rq_set_defaults(rq);
 }
 EXPORT_SYMBOL(blk_rq_init);
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 4 lines · John Garry

The rq->part pointer is already NULLified in the memset() call, so - like for other pointers in rq - don't re-NULLify.

Applied, thanks!

[1/1] block: Remove extra part pointer NULLify in blk_rq_init()

      commit: edc80c585772cac59ef780899269436a0823fe67

Best regards,

Signature · 1 line
Jens Axboe