MFC r277185:
Fix overflow bug from r248577, turning 30s TRIM timeout into ~4s.
This commit is contained in:
parent
33230ae6d4
commit
4a44a3d569
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user