summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2026-01-21 04:02:04 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-21 14:17:44 +0100
commitfdeb3ca3cca827f1a4845b570e4c5dd59fa893de (patch)
tree0a947a936a141c3f35c615554272e73418ac0aed /drivers/base
parentc259cd7ea3c9ad369c473ba2385d82e3432088b1 (diff)
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/revocable.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/revocable.c b/drivers/base/revocable.c
index f6cece275aac..b068e18a847d 100644
--- a/drivers/base/revocable.c
+++ b/drivers/base/revocable.c
@@ -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;