Date: Wed, 19 Feb 2003 15:25:26 -0800 From: Jeffrey Hsu <hsu@FreeBSD.org> To: Jon Dugan <jdugan@ncsa.uiuc.edu> Cc: freebsd-net@freebsd.org Subject: Re: MT/MP locking and TCP Message-ID: <0HAK00K0QWSP3P@mta5.snfc21.pbi.net> In-Reply-To: Message from Jon Dugan <jdugan@ncsa.uiuc.edu> "of Wed, 19 Feb 2003 17:04:53 CST." <20030219230453.GA3167@ncsa.uiuc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> It seems like > several variables are locked for the vast majority of the time in > tcp_input(). inp, in particular, should be locked the entire time in tcp_input, so you are always going to have your "could sleep with lock held" problem unless you add M_NOWAIT to your calls to malloc() or pre-allocate before entering tcp_input() or somehow rework your code to not make use of dynamically allocated memory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0HAK00K0QWSP3P>