Get rid of LK_DRAIN, rely on nc_lwant to interlock lock races against
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Apr 2006 02:33:23 +0000 (02:33 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 23 Apr 2006 02:33:23 +0000 (02:33 +0000)
commitf211496f4baffcedaf7a27d259faa6e3775243fe
tree8ca9c183da5a8deb8c0d17416fcf8d7e5c4a629b
parentf00930229671d2cac31211b70b94a7d3d68833aa
Get rid of LK_DRAIN, rely on nc_lwant to interlock lock races against
termination.  Only unlock/relock in ncp_conn_free() if lwant is non-zero.

It is unclear whether nc_lwant is sufficient, though, but the original
code was pretty horrendous.
sys/netproto/ncp/ncp_conn.c