On Sun, May 28, 2017 at 08:53:16PM +0200, Martin Pieuchot wrote: > Trying to grab the NET_LOCK() while holding an ifp reference is wrong. > This creates deadlock as found by Hrvoje Popovski. The reason is that > if_detach() sleeps holding the NET_LOCK() while waiting for others > threads to release their reference.
the patch indeed fixes the deadlock described above. OK sashan@