Date: Tue, 27 Jul 2004 20:30:56 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netgraph netgraph.h ng_base.c ng_socket.c Message-ID: <200407272030.i6RKUuQq049202@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glebius 2004-07-27 20:30:56 UTC FreeBSD src repository Modified files: sys/netgraph netgraph.h ng_base.c ng_socket.c Log: When making a peer of unknown type framework tries to load module using linker_load_module(). This works OK if NGM_MKPEER message came from userland and we have process associated with thread. But when NGM_MKPEER was queued because target node was busy, linker_load_module() is called from netisr thread leading to panic. To workaround that we do not load modules by framework, instead ng_socket loads module (if this is required) before sending NGM_MKPEER. However, the race condition between return from NgSendMsg() and actual creation of node still exist and needs to be solved. PR: kern/62789 Approved by: julian Revision Changes Path 1.43 +1 -0 src/sys/netgraph/netgraph.h 1.84 +5 -19 src/sys/netgraph/ng_base.c 1.52 +34 -0 src/sys/netgraph/ng_socket.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407272030.i6RKUuQq049202>