mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
rcu/nocb: Make __call_rcu_nocb_wake() safe for many callbacks
It might be hard to imagine having more than two billion callbacks queued on a single CPU's ->cblist, but someone will do it sometime. This commit therefore makes __call_rcu_nocb_wake() handle this situation by upgrading local variable "len" from "int" to "long". Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
This commit is contained in:
parent
383e133283
commit
ce0a825e40
@ -1615,7 +1615,7 @@ static void __call_rcu_nocb_wake(struct rcu_data *rdp, bool was_alldone,
|
|||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
__releases(rdp->nocb_lock)
|
__releases(rdp->nocb_lock)
|
||||||
{
|
{
|
||||||
int len;
|
long len;
|
||||||
struct task_struct *t;
|
struct task_struct *t;
|
||||||
|
|
||||||
// If we are being polled or there is no kthread, just leave.
|
// If we are being polled or there is no kthread, just leave.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user