Date: Thu, 10 Apr 2003 05:53:11 -0700 From: Jeffrey Hsu <hsu@FreeBSD.org> To: harti@FreeBSD.org Cc: freebsd-current@FreeBSD.org Subject: Re: LOR in if_detach Message-ID: <200304101251.h3ACphHo021011@mta7.pltn13.pbi.net> In-Reply-To: Message from Harti Brandt <brandt@fokus.fraunhofer.de> <20030410143518.B605@beagle.fokus.fraunhofer.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> I must stop the interface before calling if_detach. The midway driver doesn't do that now anyways, so there's no reason to start now. > If I unlock after stoping before detaching, I get a race window > where somebody could just UP the interface. This race is outside the scope of the network driver lock. > 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? That's what I had planned. Jeffrey
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304101251.h3ACphHo021011>