Skip to contentSkip to conversation

block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos().

PATCH Superseded chengkaitao 1 participant 1 message Aug 29, 2025 Block layer

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos().

From: chengkaitao <[email protected]>

In commit(fde02699c242), the "if (blk_rq_is_seq_zoned_write(rq))" was removed, but the "rb_entry_rq(node)" was inadvertently left behind. This patch fixed it.

---
 block/mq-deadline.c | 1 -
 1 file changed, 1 deletion(-)
block/mq-deadline.c +0 -1
index 1a031922c447..0f5d0d5fe837 100644
@@ -136,7 +136,6 @@ static inline struct request *deadline_from_pos(struct dd_per_prio *per_prio,
 	if (!node)
 		return NULL;
 
-	rq = rb_entry_rq(node);
 	while (node) {
 		rq = rb_entry_rq(node);
 		if (blk_rq_pos(rq) >= pos) {
Signature · 1 line
2.39.5 (Apple Git-154)