lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250829015341.91304-1-pilgrimtao@gmail.com>
Date: Fri, 29 Aug 2025 09:53:41 +0800
From: chengkaitao <pilgrimtao@...il.com>
To: axboe@...nel.dk
Cc: linux-block@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	chengkaitao <chengkaitao@...inos.cn>
Subject: [PATCH] block/mq-deadline: Remove the redundant rb_entry_rq in the deadline_from_pos().

From: chengkaitao <chengkaitao@...inos.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@...inos.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)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ