Commit fdeb3ca3 authored by Tzung-Bi Shih's avatar Tzung-Bi Shih Committed by Greg Kroah-Hartman
Browse files

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: default avatarTzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260121040204.2699886-1-tzungbi@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c259cd7e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;