Thread (5 messages) flat view 5 messages, 4 authors, 2017-05-23

Re: 4.12-RC2 BUG: scheduling while atomic: irq/47-iwlwifi

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2017-05-23 07:22:36
Also in: linux-wireless

Possibly related (same subject, not in this thread)

On Tue, 2017-05-23 at 09:19 +0200, Arend Van Spriel wrote:
quoted
	WARN_ON_ONCE(!rcu_read_lock_held() && !lockdep_rtnl_is_held());
Thought about something like this after sending the email. So there
are two call sites. One for scheduled scan results notification and
one in scheduled scan stop scenario. So for the latter it is not
needed to use the rcu_read_lock() as it should have RTNL lock hence
the two checks above?
Right. The latter can't even really use rcu_read_lock() since it also
wants to modify the list, and that's not sufficient protection for
modifying.

Thanks!

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help