Skip to content

Commit

Permalink
6385 Fix unlocking order in zfs_zget
Browse files Browse the repository at this point in the history
Reviewed by: Brian Behlendorf <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: Andriy Gapon <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
  • Loading branch information
ryao authored and ahrens committed Oct 29, 2015
1 parent 07b64d1 commit eaef6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/uts/common/fs/zfs/zfs_znode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,8 @@ zfs_zget(zfsvfs_t *zfsvfs, 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(zfsvfs, obj_num);
return (err);
}
Expand Down

0 comments on commit eaef6a9

Please sign in to comment.