kernel - Beef up lwkt_dropmsg() API and fix deadlock in so_async_rcvd*()
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Feb 2013 00:49:01 +0000 (16:49 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 26 Feb 2013 00:49:01 +0000 (16:49 -0800)
commit6999cd8155d3d7c6f03c1116687aee56d42fe84a
tree17702a42c4c63e8361860f11bc64adb99fe98f37
parentacc8e975b535f62b65b5815806e8e01036e577b7
kernel - Beef up lwkt_dropmsg() API and fix deadlock in so_async_rcvd*()

* Beef up the lwkt_dropmsg() API.  The API now conditionally returns
  success (0) or an error (ENOENT).

* so_pru_rcvd_async() improperly calls lwkt_sendmsg() with a spinlock
  held.  This is not legal.  Hack up lwkt_sendmsg() a bit to resolve.
sys/kern/lwkt_msgport.c
sys/kern/uipc_msg.c
sys/net/bridge/bridgestp.c
sys/net/bridge/if_bridge.c
sys/net/ipfw/ip_fw2.c
sys/netinet/ip_carp.c
sys/netinet/tcp_output.c
sys/netinet/tcp_timer.c
sys/sys/msgport.h
sys/sys/msgport2.h