Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tzung-Bi Shih and committed by
Greg Kroah-Hartman
fdeb3ca3 c259cd7e

-1
-1
drivers/base/revocable.c
··· 99 99 100 100 init_srcu_struct(&rp->srcu); 101 101 rcu_assign_pointer(rp->res, res); 102 - synchronize_srcu(&rp->srcu); 103 102 kref_init(&rp->kref); 104 103 105 104 return rp;