svn commit: r254052 - head/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Wed Aug 7 08:20:12 UTC 2013


Author: mav
Date: Wed Aug  7 08:20:11 2013
New Revision: 254052
URL: http://svnweb.freebsd.org/changeset/base/254052

Log:
  Improve r253721 by reporting detected lack of BIO_FLUSH support to GEOM.
  That prevents more of such requests from coming and errors from logging.

Modified:
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Wed Aug  7 08:03:50 2013	(r254051)
+++ head/sys/cam/scsi/scsi_da.c	Wed Aug  7 08:20:11 2013	(r254052)
@@ -2820,6 +2820,7 @@ cmd6workaround(union ccb *ccb)
 			xpt_print(ccb->ccb_h.path,
 			    "SYNCHRONIZE CACHE(10) not supported.\n");
 		softc->quirks |= DA_Q_NO_SYNC_CACHE;
+		softc->disk->d_flags &= ~DISKFLAG_CANFLUSHCACHE;
 		return (0);
 	}
 


More information about the svn-src-head mailing list