Commit f8b89a36 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Sasha Levin
Browse files

rcu/exp: Fix RCU expedited parallel grace period kworker allocation failure recovery



[ Upstream commit a636c5e6 ]

Under CONFIG_RCU_EXP_KTHREAD=y, the nodes initialization for expedited
grace periods is queued to a kworker. However if the allocation of that
kworker failed, the nodes initialization is performed synchronously by
the caller instead.

Now the check for kworker initialization failure relies on the kworker
pointer to be NULL while its value might actually encapsulate an
allocation failure error.

Make sure to handle this case.

Reviewed-by: default avatarKalesh Singh <kaleshsingh@google.com>
Fixes: 9621fbee ("rcu: Move expedited grace period (GP) work to RT kthread_worker")
Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Reviewed-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ad999aa1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment