lagg: a race between ioctl and clone_destroy

Andriy Gapon avg at FreeBSD.org
Mon Dec 3 13:34:05 UTC 2018


On 03/12/2018 14:34, Andriy Gapon wrote:
> My idea is that there should be something like 'if_freed' or 'if_destroyed'
> method that could be used by drivers for their cleaning up.  That method would
> be called from if_destroy() when we really know that the interface has no
> references and, thus, no threads are accessing it.  Then it must really be safe
> to destroy the softc as well.
> How does this sound?

This is what I meant, in C: https://reviews.freebsd.org/D18420

-- 
Andriy Gapon


More information about the freebsd-net mailing list