Skip to content

Commit

Permalink
Fix locking order in zfs_zget()
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
  • Loading branch information
ryao authored and behlendorf committed Apr 4, 2014
1 parent 6f9548c commit f3ad9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_znode.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ zfs_zget(zfs_sb_t *zsb, uint64_t obj_num, znode_t **zpp)
*zpp = zp;
err = 0;
}
sa_buf_rele(db, NULL);
mutex_exit(&zp->z_lock);
sa_buf_rele(db, NULL);
ZFS_OBJ_HOLD_EXIT(zsb, obj_num);
return (err);
}
Expand Down

0 comments on commit f3ad9cd

Please sign in to comment.