summaryrefslogtreecommitdiffstats
path: root/module/zfs/spa.c
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-10-14 05:25:05 +0800
committerBrian Behlendorf <[email protected]>2016-10-13 14:25:05 -0700
commit05852b3467b44cdf88541ec67624cd1f5f2ded1d (patch)
tree0dee222df98e2cf5f4eb2c38be2d59e6e7484533 /module/zfs/spa.c
parente8d3dcdfb15cdbd946407f6d8f0131e88ff05011 (diff)
Fix coverity defects: CID 147571, 147574
CID 147571: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) CID 147574: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5268
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r--module/zfs/spa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c
index bd1134e8f..9c29543b9 100644
--- a/module/zfs/spa.c
+++ b/module/zfs/spa.c
@@ -5928,7 +5928,7 @@ spa_async_tasks_pending(spa_t *spa)
} else {
config_task_suspended =
(gethrtime() - spa->spa_ccw_fail_time) <
- (zfs_ccw_retry_interval * NANOSEC);
+ ((hrtime_t)zfs_ccw_retry_interval * NANOSEC);
}
return (non_config_tasks || (config_task && !config_task_suspended));