Skip to content
Permalink
Browse files

make zfs_async_block_max_blocks handle zero correctly

Signed-off-by: TulsiJain <tulsi.jain@delphix.com>
  • Loading branch information...
TulsiJain authored and TulsiJain committed May 28, 2019
1 parent 0869b74 commit a21e40d5b9917938e6309fda2b944f718ccb83ee
Showing with 2 additions and 1 deletion.
  1. +2 −1 module/zfs/dsl_scan.c
@@ -3025,7 +3025,8 @@ dsl_scan_async_block_should_pause(dsl_scan_t *scn)
if (zfs_recover)
return (B_FALSE);

if (scn->scn_visited_this_txg >= zfs_async_block_max_blocks)
if (zfs_async_block_max_blocks != 0 && scn->scn_visited_this_txg >=
zfs_async_block_max_blocks)
return (B_TRUE);

elapsed_nanosecs = gethrtime() - scn->scn_sync_start_time;

0 comments on commit a21e40d

Please sign in to comment.
You can’t perform that action at this time.