linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos().
@ 2025-08-29  1:53 chengkaitao
  0 siblings, 0 replies; only message in thread
From: chengkaitao @ 2025-08-29  1:53 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel, chengkaitao

From: chengkaitao <chengkaitao@kylinos.cn>

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.

Signed-off-by: chengkaitao <chengkaitao@kylinos.cn>
---
 block/mq-deadline.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/block/mq-deadline.c b/block/mq-deadline.c
index 1a031922c447..0f5d0d5fe837 100644
--- a/block/mq-deadline.c
+++ b/block/mq-deadline.c
@@ -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) {
-- 
2.39.5 (Apple Git-154)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-29  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-29  1:53 [PATCH] block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos() chengkaitao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).