PERFORCE change 165346 for review

Alexander Motin mav at FreeBSD.org
Sun Jun 28 13:37:41 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=165346

Change 165346 by mav at mav_mavbook on 2009/06/28 13:37:33

	Do not drop the lock at the end of atapi_action() on error.
	It is the real reason of crash when ATA XPT tried to scan this
	emulated SPI bus.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/dev/ata/atapi-cam.c#16 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/dev/ata/atapi-cam.c#16 (text+ko) ====

@@ -666,13 +666,11 @@
     xpt_freeze_simq(sim, /*count*/ 1);
     ccb_h->status = CAM_REQUEUE_REQ;
     xpt_done(ccb);
-    mtx_unlock(&softc->state_lock);
     return;
 
 action_invalid:
     ccb_h->status = CAM_REQ_INVALID;
     xpt_done(ccb);
-    mtx_unlock(&softc->state_lock);
     return;
 }
 


More information about the p4-projects mailing list