Skip to content

Commit

Permalink
Artifical ZIL flush delay.
Browse files Browse the repository at this point in the history
  • Loading branch information
dechamps committed Nov 10, 2013
1 parent 0c28fb4 commit 9b5f1ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/zfs/zil.c
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,10 @@ zil_commit_writer(zilog_t *zilog)
error = zio_wait(zilog->zl_root_zio);
zilog->zl_root_zio = NULL;
zil_flush_vdevs(zilog);
#ifdef _KERNEL
printk(KERN_NOTICE "Injecting artificial 100 ms delay in zil_flush_vdevs()\n");
msleep(100);
#endif
}

if (error || lwb == NULL)
Expand Down

0 comments on commit 9b5f1ce

Please sign in to comment.