Skip to content

Instantly share code, notes, and snippets.

@tuxoko
Created April 27, 2015 15:26
Show Gist options
  • Save tuxoko/ec352a6f8cd57bc13742 to your computer and use it in GitHub Desktop.
Save tuxoko/ec352a6f8cd57bc13742 to your computer and use it in GitHub Desktop.
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index 0c0091f..1655c7e 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -950,6 +950,7 @@ again:
mutex_exit(&zp->z_lock);
sa_buf_rele(db, NULL);
ZFS_OBJ_HOLD_EXIT(zsb, obj_num);
+ cond_resched();
goto again;
}
*zpp = zp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment