Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2015-01-14 16:22:00 +00:00
parent 2b39d4f68b
commit 38feff972b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277185

View File

@ -440,7 +440,7 @@ trim_map_vdev_commit(spa_t *spa, zio_t *zio, vdev_t *vd)
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;