Date: Wed, 11 Aug 2010 12:46:39 -0600 From: Will Andrews <will@firepipe.net> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Will Andrews <will@freebsd.org> Subject: Re: svn commit: r211157 - in head/sys: modules modules/if_carp net netinet netinet6 Message-ID: <AANLkTi=-tAreBq3SnHgJ_2nODaxrb5-ChbDPoCVfJ5v0@mail.gmail.com> In-Reply-To: <20100811143430.GB1707@garage.freebsd.pl> References: <201008110051.o7B0pp10084996@svn.freebsd.org> <20100811143430.GB1707@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 11, 2010 at 8:34 AM, Pawel Jakub Dawidek <pjd@freebsd.org> wrote: > Wouldn't it be better to allow unload only if there are no carp(4) > interfaces? I'd be glad to destroy my carp interfaces before unloading > the module, but recompiling the kernel to unload it? Not so much. Well, in theory, if_clone_detach() is supposed to do that, and it's called during the unload process prior to NULLing the fp's. But I've been unable to verify whether that is enough to prevent races. --Will.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=-tAreBq3SnHgJ_2nODaxrb5-ChbDPoCVfJ5v0>