diff options
author | imp <imp@FreeBSD.org> | 2016-04-14 22:13:46 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-04-14 22:13:46 +0000 |
commit | 16d260de4ebad8d06b93188bbb7fe539a1cb6e6c (patch) | |
tree | 963d4266793a28660447a8bedaf748a8c5cda63d /sys/cam | |
parent | 3502a60d3ceabf0db805355a488629387720f9d4 (diff) | |
download | FreeBSD-src-16d260de4ebad8d06b93188bbb7fe539a1cb6e6c.zip FreeBSD-src-16d260de4ebad8d06b93188bbb7fe539a1cb6e6c.tar.gz |
Add a comment about why the timeout for flush was lowered to 5s.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ata/ata_da.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c index 3d3afbd..1d1d033 100644 --- a/sys/cam/ata/ata_da.c +++ b/sys/cam/ata/ata_da.c @@ -912,6 +912,11 @@ adadump(void *arg, void *virtual, vm_offset_t physical, off_t offset, size_t len if (softc->flags & ADA_FLAG_CAN_FLUSHCACHE) { xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); + /* + * Tell the drive to flush its intenral cache. if we + * can't flush in 5s we have big problems. No need to + * wait the default 60s to detect problems. + */ ccb.ccb_h.ccb_state = ADA_CCB_DUMP; cam_fill_ataio(&ccb.ataio, 0, |