|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v8 3/5] xen: don't process rcu callbacks when holding a rcu_read_lock()
On 27.03.20 09:35, Jan Beulich wrote: On 27.03.2020 09:10, Jürgen Groß wrote:On 27.03.20 00:24, Igor Druzhinin wrote:On 26/03/2020 09:19, Juergen Gross wrote:Some keyhandlers are calling process_pending_softirqs() while holding a rcu_read_lock(). This is wrong, as process_pending_softirqs() might activate rcu calls which should not happen inside a rcu_read_lock(). For that purpose modify process_pending_softirqs() to not allow rcu callback processing when a rcu_read_lock() is being held. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- V3: - add RCU_SOFTIRQ to ignore in process_pending_softirqs_norcu() (Roger Pau Monné) V5: - block rcu processing depending on rch_read_lock() being held or not (Jan Beulich) Right. This explains why I don't see the hang on my test system. Jürgen, as an aside, while looking at the code again, I think the comment near the end of process_pending_softirqs() would now rather belong at its very beginning; should have spotted this while reviewing. Oh, indeed. Will send a patch. Juergen
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |