summaryrefslogtreecommitdiffstats
path: root/sys/cam/ata
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-10-29 08:47:23 +0000
committermav <mav@FreeBSD.org>2016-10-29 08:47:23 +0000
commit2c51319876e43279c95d2cdc537d65784b50252d (patch)
treec04ac5620edc9037c93568cd923ab5e9309aa668 /sys/cam/ata
parenta62b6c1013f6928b1442da082b4b3393d9cb790c (diff)
downloadFreeBSD-src-2c51319876e43279c95d2cdc537d65784b50252d.zip
FreeBSD-src-2c51319876e43279c95d2cdc537d65784b50252d.tar.gz
MFC r307507, r307509, r307515:
Consider device as clean even if SYNCHRONIZE CACHE failed. If device reservation was preempted by other initiator, our sync request will always fail. Without this change CAM tried to sync cache on every following device close, including numerous GEOM tasting opens/closes, causing lots of useless noise in logs.
Diffstat (limited to 'sys/cam/ata')
-rw-r--r--sys/cam/ata/ata_da.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
index b59c649..808dc72 100644
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -926,8 +926,7 @@ adaclose(struct disk *dp)
if (error != 0)
xpt_print(periph->path, "Synchronize cache failed\n");
- else
- softc->flags &= ~ADA_FLAG_DIRTY;
+ softc->flags &= ~ADA_FLAG_DIRTY;
xpt_release_ccb(ccb);
cam_periph_unhold(periph);
}
OpenPOWER on IntegriCloud