svn commit: r236639 - head/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Tue Jun 5 20:39:13 UTC 2012


Author: mav
Date: Tue Jun  5 20:39:12 2012
New Revision: 236639
URL: http://svn.freebsd.org/changeset/base/236639

Log:
  Use default error handler when flushing disk caches.

Modified:
  head/sys/cam/ata/ata_da.c

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c	Tue Jun  5 20:34:56 2012	(r236638)
+++ head/sys/cam/ata/ata_da.c	Tue Jun  5 20:39:12 2012	(r236639)
@@ -490,7 +490,7 @@ adaclose(struct disk *dp)
 			ata_48bit_cmd(&ccb->ataio, ATA_FLUSHCACHE48, 0, 0, 0);
 		else
 			ata_28bit_cmd(&ccb->ataio, ATA_FLUSHCACHE, 0, 0, 0);
-		cam_periph_runccb(ccb, /*error_routine*/NULL, /*cam_flags*/0,
+		cam_periph_runccb(ccb, adaerror, /*cam_flags*/0,
 		    /*sense_flags*/0, softc->disk->d_devstat);
 
 		if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)


More information about the svn-src-all mailing list