From 69d1b777e86295f382c8be9d7b9fdce731bd1e1c Mon Sep 17 00:00:00 2001 From: "Justin T. Gibbs" Date: Sat, 21 Sep 2013 03:52:08 +0000 Subject: [PATCH] Optimize the block size used on ZFS cache devices as is already done for data and log devices. Reported by: Dmitryy Makarov Submitted by: smh Reviewed by: gibbs Approved by: re (delphij) MFC after: 2 weeks --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c index cd3f8ac75915..e76b3484fce9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c @@ -5387,6 +5387,8 @@ l2arc_add_vdev(spa_t *spa, vdev_t *vd) ASSERT(!l2arc_vdev_present(vd)); + vdev_ashift_optimize(vd); + /* * Create a new l2arc device entry. */