Created
April 14, 2014 00:07
-
-
Save lundman/10607459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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