]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/pkey: Add comment about synchronize_rcu() to pkey base
authorHarald Freudenberger <freude@linux.ibm.com>
Tue, 24 Mar 2026 12:57:36 +0000 (13:57 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 2 Apr 2026 10:06:29 +0000 (12:06 +0200)
commite3d074b5e642ed40c31876816a2af0ddcf9b94a3
tree9f7e1e9c4e4a1f466946d89e19f8b72cb6388a30
parent052abf9ac00b69da50342698679a67c3c0901f7f
s390/pkey: Add comment about synchronize_rcu() to pkey base

Add a comment about the use of the synchronize_rcu() invocation.
There are two invocations of the synchronize_rcu() call in the
pkey base code. On one place it is optional but used to enforce
a fast path update to the other CPUs. As some people and code
checkers complain about this redundant invocation the suggestion
came up to add a comment to explain why the call is meaningful
at that place.

Closes: https://lore.kernel.org/linux-s390/20260313052312.2389-1-lirongqing@baidu.com/
Suggested-by: Li Rongqing <lirongqing@baidu.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/pkey_base.c