Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2001 16:50:36 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Hajimu UMEMOTO <ume@mahoroba.org>
Cc:        net@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Use of M_WAITOK in if_addmulti().
Message-ID:  <200107152050.f6FKoae21142@khavrinen.lcs.mit.edu>
In-Reply-To: <20010716.001314.59549708.ume@mahoroba.org>
References:  <20010715120317.A99869@fump.kawo2.rwth-aachen.de> <20010716.001314.59549708.ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 16 Jul 2001 00:13:14 +0900 (JST), Hajimu UMEMOTO <ume@mahoroba.org> said:

> Current if_addmulti() calls MALLOC() with M_WAITOK.  However,
> if_addmulti() can be called from in[6]_addmulti() with splnet().  It
> may lead kernel panic.

This is not a problem (or should not be).  It is permissible to sleep
while some interrupts are blocked; it is just not (in 4-stable)
permissible to sleep in interrupt context.  The PR that I sent a few
days ago was an example of one such circumstance.  Is it really the
case that in6_addmulti() can be invoked in interrupt context, and if
so, why?

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107152050.f6FKoae21142>