Skip to content

Instantly share code, notes, and snippets.

@lundman
Created April 14, 2014 00:07
Show Gist options
  • Save lundman/10607459 to your computer and use it in GitHub Desktop.
Save lundman/10607459 to your computer and use it in GitHub Desktop.
diff --git a/module/zfs/zfs_vnops_osx.c b/module/zfs/zfs_vnops_osx.c
index 03d2fda..3f913ab 100644
--- a/module/zfs/zfs_vnops_osx.c
+++ b/module/zfs/zfs_vnops_osx.c
@@ -1427,6 +1427,10 @@ void vnop_reclaim_thread(void *arg)
count = 0;
#endif
+
+ /* If ZIL is closed (suspend_fs), we nede to */
+ while (zfsvfs->z_log == NULL) {
+
/* Allow us to quit, since list is empty */
if (zfsvfs->z_reclaim_thread_exit == TRUE) break;
@@ -1443,6 +1447,9 @@ void vnop_reclaim_thread(void *arg)
delay(hz>>1);
#endif
+
+ } // ZIL NULL
+
} // forever
#ifdef VERBOSE_RECLAIM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment