MFC r277185:

Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.
This commit is contained in:
mav 2015-01-28 02:56:18 +00:00
parent 33230ae6d4
commit 4a44a3d569

View File

@ -447,7 +447,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;