[RFC AR6000 patch V3] Set hardware unavailable during wext_ioctl when the suspend or rfkill is send
trimarchi at gandalf.sssup.it
Thu Apr 2 20:16:07 CEST 2009
Werner Almesberger wrote:
> Michael Trimarchi wrote:
>> I see the other patches,
>> I'm not sure if you just reduce the window or your patch is ok, I must
>> take a look
>> to the net part to undestand if it is correct.
> The patch should be good. What it does is that it moves all the
> low-level shutdown into ar6000_close which is called from
> unregister_netdev. This means that it happens while the rtnl_lock
> is held. The ioctl path also gets rtnl_lock, so the two can't
> race anymore.
Ok when I look at the code in net I don't see the the lock is take
in wext.c before. But it is not a problem. Time spent to program
is never loose.
More information about the openmoko-kernel