LOR in if_detach
Harti Brandt
brandt at fokus.fraunhofer.de
Wed Apr 9 09:41:02 PDT 2003
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 at fokus.fraunhofer.de, harti at freebsd.org
More information about the freebsd-current
mailing list