From d5782879d27b85dce3fec2c6791f149d26545295 Mon Sep 17 00:00:00 2001 From: mishra Date: Tue, 12 Jun 2007 15:30:57 -0700 Subject: 6456223 system hang after test suite run on usb disk --- usr/src/uts/common/fs/zfs/vdev_disk.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr/src') 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; } -- cgit v1.2.3