diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c index 0c0091f0445..a3d64fe01b5 100644 --- a/module/zfs/zfs_znode.c +++ b/module/zfs/zfs_znode.c @@ -950,6 +950,8 @@ zfs_zget(zfs_sb_t *zsb, uint64_t obj_num, znode_t **zpp) mutex_exit(&zp->z_lock); sa_buf_rele(db, NULL); ZFS_OBJ_HOLD_EXIT(zsb, obj_num); + /* inode might need this to finish evict */ + cond_resched(); goto again; } *zpp = zp;