svn commit: r277819 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Alexander Motin mav at FreeBSD.org
Wed Jan 28 02:56:19 UTC 2015


Author: mav
Date: Wed Jan 28 02:56:18 2015
New Revision: 277819
URL: https://svnweb.freebsd.org/changeset/base/277819

Log:
  MFC r277185:
  Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c	Wed Jan 28 02:55:20 2015	(r277818)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c	Wed Jan 28 02:56:18 2015	(r277819)
@@ -447,7 +447,7 @@ trim_map_vdev_commit(spa_t *spa, zio_t *
 	if (tm == NULL)
 		return;
 
-	timelimit = gethrtime() - trim_timeout * NANOSEC;
+	timelimit = gethrtime() - (hrtime_t)trim_timeout * NANOSEC;
 	if (vd->vdev_isl2cache) {
 		txgsafe = UINT64_MAX;
 		txgtarget = UINT64_MAX;


More information about the svn-src-stable-10 mailing list