aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2014-03-25 17:49:47 -0400
committerBrian Behlendorf <[email protected]>2014-04-04 09:12:47 -0700
commitf3ad9cd67ae57760a7ec9e8cdb0e33aa8bbea4d0 (patch)
treec940264aef0d4fcf0ecf7cd8f0c6eacdd2cae68b /module
parent6f9548c487dbcf958f2f226c5f1eac2b85f8f78e (diff)
Fix locking order in zfs_zget()
Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zfs_znode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index 531d29a40..2ab896fec 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -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);
}