Re: [PATCH] rcu: fix warning in rcu_seq_end()

2017-03-05 Thread Paul E. McKenney
On Sun, Mar 05, 2017 at 11:48:17AM +0100, Dmitry Vyukov wrote: > rcu_seq_end() increments seq signifying completion of a grace period, > after that checks that the seq is even and wakes > _synchronize_rcu_expedited(). _synchronize_rcu_expedited() uses > wait_event() to wait for even seq. The proble

[PATCH] rcu: fix warning in rcu_seq_end()

2017-03-05 Thread Dmitry Vyukov
rcu_seq_end() increments seq signifying completion of a grace period, after that checks that the seq is even and wakes _synchronize_rcu_expedited(). _synchronize_rcu_expedited() uses wait_event() to wait for even seq. The problem is that wait_event() can return as soon as seq becomes even without w