On Fri, 2012-08-24 at 11:44 +0200, Eric Dumazet wrote:
On Fri, 2012-08-24 at 17:15 +0800, Cong Wang wrote:
quoted
Right... If we call dev_hold() in the work, it is possible that the work
is still not scheduled to running when we unregister the device. What's
more, we can't flush work here as we are holding a read lock.
You need a global list (and a single work, not one per req), so that a
notifier can flush it at demand.
Agreed. I will make a new patch.
Thanks!