Improve r253721 by reporting detected lack of BIO_FLUSH support to GEOM.

That prevents more of such requests from coming and errors from logging.
This commit is contained in:
Alexander Motin 2013-08-07 08:20:11 +00:00
parent 818d282e7b
commit 71185c66dd

View File

@ -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);
}