svn commit: r237313 - stable/8/sys/cam/ata

Alexander Motin mav at FreeBSD.org
Wed Jun 20 14:23:10 UTC 2012


Author: mav
Date: Wed Jun 20 14:23:10 2012
New Revision: 237313
URL: http://svn.freebsd.org/changeset/base/237313

Log:
  MFC r236639:
  Use default error handler when flushing disk caches.

Modified:
  stable/8/sys/cam/ata/ata_da.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/cam/ata/ata_da.c
==============================================================================
--- stable/8/sys/cam/ata/ata_da.c	Wed Jun 20 14:22:38 2012	(r237312)
+++ stable/8/sys/cam/ata/ata_da.c	Wed Jun 20 14:23:10 2012	(r237313)
@@ -480,7 +480,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