mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-02 04:41:10 -04:00
revocable: Remove redundant synchronize_srcu() call
When allocating a revocable provider via revocable_provider_alloc(), there is no revocable consumers (i.e., RCU readers) yet. Remove the redundant synchronize_srcu() call to save cycles. Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://patch.msgid.link/20260121040204.2699886-1-tzungbi@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c259cd7ea3
commit
fdeb3ca3cc
@@ -99,7 +99,6 @@ struct revocable_provider *revocable_provider_alloc(void *res)
|
||||
|
||||
init_srcu_struct(&rp->srcu);
|
||||
rcu_assign_pointer(rp->res, res);
|
||||
synchronize_srcu(&rp->srcu);
|
||||
kref_init(&rp->kref);
|
||||
|
||||
return rp;
|
||||
|
||||
Reference in New Issue
Block a user