diff options
author | mm <mm@FreeBSD.org> | 2010-05-21 08:50:34 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-05-21 08:50:34 +0000 |
commit | c47ee5a2cae1d2e03f929710d8ef0ac7e14b81c6 (patch) | |
tree | a34e509dfe56e35e652a6c50d7609d506d145139 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c | |
parent | 2f9e8c891f2eab56fd40a8048a31901ebfa0c2e7 (diff) | |
download | FreeBSD-src-c47ee5a2cae1d2e03f929710d8ef0ac7e14b81c6.zip FreeBSD-src-c47ee5a2cae1d2e03f929710d8ef0ac7e14b81c6.tar.gz |
Fix: vdev_reopen() can lead to failed allocations
OpenSolaris onnv-revision: 7980:589f37f25048
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6764914)
MFC after: 3 days
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c index 22b56d6..47f8f5f 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c @@ -781,7 +781,7 @@ top: /* * Don't allocate from faulted devices. */ - if (!vdev_writeable(vd)) + if (!vdev_allocatable(vd)) goto next; /* * Avoid writing single-copy data to a failing vdev |