Date: Mon, 3 Dec 2018 15:28:00 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: freebsd-net@FreeBSD.org Subject: Re: lagg: a race between ioctl and clone_destroy Message-ID: <91cd31c1-0e34-b1ba-842a-0da4d125780f@FreeBSD.org> In-Reply-To: <b6d2139b-b6b1-4051-01bc-618565934556@FreeBSD.org> References: <8fcf453e-c326-eb14-367a-655cbee5d088@FreeBSD.org> <b6d2139b-b6b1-4051-01bc-618565934556@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?91cd31c1-0e34-b1ba-842a-0da4d125780f>