kernel - Attempt to fix early release panic w/USB's sim.
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Nov 2011 05:14:45 +0000 (21:14 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 29 Nov 2011 05:14:45 +0000 (21:14 -0800)
commit4fb294d7189541b3a6beb03f9c479dbce81abb40
tree561a92eb98912f44fcea7b10915241c4b6fee9da
parent1f853d5d5a1ab31172a0110565f163933281adce
kernel - Attempt to fix early release panic w/USB's sim.

* Acquire the CAM_SIM lock when called via the callout, and don't
  acquire the lock when we already hold it via the xpt_dev_async() path.

Reported-by: JustinS
sys/bus/cam/cam_xpt.c