On Thu, 10 Apr 2003, Jeffrey Hsu wrote: JH> > is there any insight on how to avoid an LOR in if_detach? JH> JH>Call if_detach() before you acquire the driver lock. I must stop the interface before calling if_detach. To stop it I need the lock. If I unlock after stoping before detaching, I get a race window where somebody could just UP the interface. While thinking about, it seems, that having a lock in struct ifnet would make sense in the long run. How can we otherwise ensure, that nobody is calling if_ioctl while we are detaching the interface? Hmmm... harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt_at_fokus.fraunhofer.de, harti_at_freebsd.orgReceived on Thu Apr 10 2003 - 03:40:14 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC