public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/pkey: Remove synchronize_rcu from pkey_handler_register
@ 2026-03-13  5:23 lirongqing
  2026-03-13  8:32 ` Harald Freudenberger
  2026-03-16  9:35 ` Harald Freudenberger
  0 siblings, 2 replies; 6+ messages in thread
From: lirongqing @ 2026-03-13  5:23 UTC (permalink / raw)
  To: Harald Freudenberger, Holger Dengler, Heiko Carstens,
	Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
	Sven Schnelle, linux-s390
  Cc: Li RongQing

From: Li RongQing <lirongqing@baidu.com>

The synchronize_rcu() call after adding a handler to the handler_list
is redundant because RCU readers will either see the old list or the
new list. Removing this synchronization point reduces the blocking
time during handler registration.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 drivers/s390/crypto/pkey_base.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/s390/crypto/pkey_base.c b/drivers/s390/crypto/pkey_base.c
index d60cd98..c2e29d6 100644
--- a/drivers/s390/crypto/pkey_base.c
+++ b/drivers/s390/crypto/pkey_base.c
@@ -60,7 +60,6 @@ int pkey_handler_register(struct pkey_handler *handler)
 
 	list_add_rcu(&handler->list, &handler_list);
 	spin_unlock(&handler_list_write_lock);
-	synchronize_rcu();
 
 	module_put(handler->module);
 
-- 
2.9.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-16  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13  5:23 [PATCH] s390/pkey: Remove synchronize_rcu from pkey_handler_register lirongqing
2026-03-13  8:32 ` Harald Freudenberger
2026-03-13  9:06   ` Heiko Carstens
2026-03-13  9:39     ` Harald Freudenberger
2026-03-16  9:35 ` Harald Freudenberger
2026-03-16  9:54   ` 答复: [????] " Li,Rongqing(ACG CCN)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox