svn commit: r269733 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Xin LI
delphij at FreeBSD.org
Fri Aug 8 18:57:44 UTC 2014
Author: delphij
Date: Fri Aug 8 18:57:43 2014
New Revision: 269733
URL: http://svnweb.freebsd.org/changeset/base/269733
Log:
MFC r269093:
Transform the I/O when vdev_physical_ashift is greater than
SPA_MINBLOCKSHIFT.
Modified:
stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c Fri Aug 8 18:54:52 2014 (r269732)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c Fri Aug 8 18:57:43 2014 (r269733)
@@ -2619,7 +2619,8 @@ zio_vdev_io_start(zio_t **ziop)
align = 1ULL << vd->vdev_top->vdev_ashift;
- if (!(zio->io_flags & ZIO_FLAG_PHYSICAL) &&
+ if ((!(zio->io_flags & ZIO_FLAG_PHYSICAL) ||
+ (vd->vdev_top->vdev_physical_ashift > SPA_MINBLOCKSHIFT)) &&
P2PHASE(zio->io_size, align) != 0) {
/* Transform logical writes to be a full physical block size. */
uint64_t asize = P2ROUNDUP(zio->io_size, align);
More information about the svn-src-all
mailing list