From de9c596797043f7e23e08f1eefb8942af3a0d715 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 15 Aug 1996 20:38:21 +0000 Subject: (diskfs_S_io_identity): Don't hold lock around call to fshelp_get_identity. --- libdiskfs/io-identity.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c index 2cd64907..4734a534 100644 --- a/libdiskfs/io-identity.c +++ b/libdiskfs/io-identity.c @@ -32,14 +32,17 @@ diskfs_S_io_identity (struct protid *cred, { struct node *np; error_t err; + ino_t inum; if (!cred) return EOPNOTSUPP; np = cred->po->np; mutex_lock (&np->lock); - - err = fshelp_get_identity (diskfs_port_bucket, np->dn_stat.st_ino, id); + inum = np->dn_stat.st_ino; + mutex_unlock (&np->lock); + + err = fshelp_get_identity (diskfs_port_bucket, inum, id); if (!err) { *idtype = MACH_MSG_TYPE_MAKE_SEND; -- cgit v1.2.3