summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authormishra <none@none>2007-06-12 15:30:57 -0700
committermishra <none@none>2007-06-12 15:30:57 -0700
commitd5782879d27b85dce3fec2c6791f149d26545295 (patch)
treef08ca5d6a310a8f299ccce1e5ec56cfedcd1240f /usr/src
parent33c22cb3ef1e3a08bec4eecf1326255f46bf5e68 (diff)
downloadillumos-joyent-d5782879d27b85dce3fec2c6791f149d26545295.tar.gz
6456223 system hang after test suite run on usb disk
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/fs/zfs/vdev_disk.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/uts/common/fs/zfs/vdev_disk.c b/usr/src/uts/common/fs/zfs/vdev_disk.c
index 5789312667..6673501d06 100644
--- a/usr/src/uts/common/fs/zfs/vdev_disk.c
+++ b/usr/src/uts/common/fs/zfs/vdev_disk.c
@@ -321,12 +321,13 @@ vdev_disk_io_start(zio_t *zio)
* upon completion.
*/
return;
- } else if (error == ENOTSUP) {
+ } else if (error == ENOTSUP || error == ENOTTY) {
/*
- * If we get ENOTSUP, we know that no future
- * attempts will ever succeed. In this case we
- * set a persistent bit so that we don't bother
- * with the ioctl in the future.
+ * If we get ENOTSUP or ENOTTY, we know that
+ * no future attempts will ever succeed.
+ * In this case we set a persistent bit so
+ * that we don't bother with the ioctl in the
+ * future.
*/
vd->vdev_nowritecache = B_TRUE;
}