Date: Tue, 17 Dec 2002 14:31:31 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Kyunghwan Kim <redjade@ada.snu.ac.kr> Cc: current@freebsd.org Subject: Re: INTR_MPSAFE to network device drivers Message-ID: <15871.31635.962334.855790@grasshopper.cs.duke.edu> In-Reply-To: <20021217191841.GA57094@ada.snu.ac.kr> References: <20021217191841.GA57094@ada.snu.ac.kr>
next in thread | previous in thread | raw e-mail | index | archive | help
Kyunghwan Kim writes: > Is it okay to add INTR_MPSAFE for all INTR_TYPE_NET drivers? NO! > mbuf and bpf routines are all mp-safe, so it seems that > it is safe to make network device drivers out of Giant lock. > Or is there any unresolved related issues? Yes, the mbuf allocator must occasionally call kmem_malloc(), which requires Giant. This means no net driver can be made INTR_MPSAFE, or it will eventually panic when kmem_malloc is called. Drew 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?15871.31635.962334.855790>