From f3ad9cd67ae57760a7ec9e8cdb0e33aa8bbea4d0 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Tue, 25 Mar 2014 17:49:47 -0400 Subject: [PATCH] Fix locking order in zfs_zget() Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf --- module/zfs/zfs_znode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c index 531d29a403a0..2ab896fecf3e 100644 --- a/module/zfs/zfs_znode.c +++ b/module/zfs/zfs_znode.c @@ -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); }