]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: wait for call_rcu before unloading module
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sat, 18 Sep 2010 19:01:14 +0000 (21:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 23:29:48 +0000 (16:29 -0700)
commit7c37dabfc150687d981d07f27860e0fe3b4ea283
tree5dea1b9e38904b368bc768432f5864fd5eaf482a
parent670ae1ffcfe7f75225b03cabe85c3014cc5eee1b
Staging: batman-adv: wait for call_rcu before unloading module

synchronize_rcu respective synchronize_net only waits for the rcu grace
period to elapse and we may fail to finish the calls which were made to
call_rcu in that time. In result the module could be unloaded during the
execution of the RCU callbacks.

rcu_barrier[1] will now wait for all outstanding RCU callbacks to finish
before continuing.

[1] Documentation/RCU/rcubarrier.txt

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/main.c