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:
mav 2013-08-07 08:20:11 +00:00
parent 0255b98224
commit 7ddb89a6c3

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