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:
parent
6f9548c487
commit
f3ad9cd67a
|
@ -922,8 +922,8 @@ again:
|
||||||
*zpp = zp;
|
*zpp = zp;
|
||||||
err = 0;
|
err = 0;
|
||||||
}
|
}
|
||||||
sa_buf_rele(db, NULL);
|
|
||||||
mutex_exit(&zp->z_lock);
|
mutex_exit(&zp->z_lock);
|
||||||
|
sa_buf_rele(db, NULL);
|
||||||
ZFS_OBJ_HOLD_EXIT(zsb, obj_num);
|
ZFS_OBJ_HOLD_EXIT(zsb, obj_num);
|
||||||
return (err);
|
return (err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue