Date: Thu, 16 Jan 2014 13:20:21 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r260711 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201401161320.s0GDKLKZ007254@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Jan 16 13:20:20 2014 New Revision: 260711 URL: http://svnweb.freebsd.org/changeset/base/260711 Log: Revert r260705: wrong patch committed by accident An earlier, less efficient version was committed by accident. Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c Thu Jan 16 13:12:06 2014 (r260710) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c Thu Jan 16 13:20:20 2014 (r260711) @@ -317,13 +317,9 @@ vdev_mirror_dva_select(zio_t *zio, int p { dva_t *dva = zio->io_bp->blk_dva; mirror_map_t *mm = zio->io_vsd; - mirror_child_t *mc; int c; for (c = preferred - 1; c >= 0; c--) { - mc = &mm->mm_child[c]; - if (mc->mc_tried || mc->mc_skipped) - continue; if (DVA_GET_VDEV(&dva[c]) == DVA_GET_VDEV(&dva[preferred])) preferred = c; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401161320.s0GDKLKZ007254>