LOR in if_detach

From: Harti Brandt <brandt_at_fokus.fraunhofer.de>
Date: Wed, 9 Apr 2003 18:40:59 +0200 (CEST)
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
Received on Wed Apr 09 2003 - 07:41:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC