Author: mav
Date: Sat Sep 14 09:11:31 2013
New Revision: 255549
URL: http://svnweb.freebsd.org/changeset/base/255549

Log:
  MFC r254052:
  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:
  stable/9/sys/cam/scsi/scsi_da.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_da.c     Sat Sep 14 09:10:01 2013        
(r255548)
+++ stable/9/sys/cam/scsi/scsi_da.c     Sat Sep 14 09:11:31 2013        
(r255549)
@@ -2831,6 +2831,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);
        }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to