Fix locking order in zfs_zget()

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Richard Yao 2014-03-25 17:49:47 -04:00 committed by Brian Behlendorf
parent 6f9548c487
commit f3ad9cd67a
1 changed files with 1 additions and 1 deletions

View File

@ -922,8 +922,8 @@ again:
*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);
}