Date: Wed, 9 Apr 2003 18:40:59 +0200 (CEST) From: Harti Brandt <brandt@fokus.fraunhofer.de> To: current@freebsd.org Subject: LOR in if_detach Message-ID: <20030409183521.D644@beagle.fokus.fraunhofer.de>
next in thread | raw e-mail | index | archive | help
Hi all, is there any insight on how to avoid an LOR in if_detach? The problem is, that the locking order of the radix node head and the network driver is first the radix node head and then the network driver. if_detach, however, one has to call with the driver lock held. if_detach in order has to remove routes pointing to the interface and needs to lock the radix node head for this. And there we have an LOR. The only 'solution' I see at the moment is to live with the race window and unlock the interface before calling if_detach. Any other ideas? harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030409183521.D644>