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>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260116061927.1004411-1-wdhh6@aliyun.com>
Date: Fri, 16 Jan 2026 14:19:27 +0800
From: Chaohai Chen <wdhh6@...yun.com>
To: axboe@...nel.dk,
	linux-block@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc: Chaohai Chen <wdhh6@...yun.com>
Subject: [PATCH] blk-mq-sched: Remove redundant code in blk_mq_sched_mark_restart_hctx().

The current purpose of the blk_mq_sched_mark_restart_hctx() function
is to set the BLK_MQ_S_SCHED_RESTART flag in hctx->state. Just remove
the redundant judgement.

Signed-off-by: Chaohai Chen <wdhh6@...yun.com>
---
 block/blk-mq-sched.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c
index e26898128a7e..2f6c353cb6d0 100644
--- a/block/blk-mq-sched.c
+++ b/block/blk-mq-sched.c
@@ -21,9 +21,6 @@
  */
 void blk_mq_sched_mark_restart_hctx(struct blk_mq_hw_ctx *hctx)
 {
-	if (test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state))
-		return;
-
 	set_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state);
 }
 EXPORT_SYMBOL_GPL(blk_mq_sched_mark_restart_hctx);
-- 
2.43.7


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ