diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2016-02-14 18:37:16 -0500 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-02-15 01:13:19 +0100 |
commit | 0f6a5081d875051e1b6275096d25332e66f0458c (patch) | |
tree | 03c55df08101f2900d8ca36fb510133f373a5a5a /libdiskfs/node-nput.c | |
parent | 63ac03bc069b81559b04596d6b337880c3351700 (diff) | |
download | hurd-0f6a5081d875051e1b6275096d25332e66f0458c.tar.gz hurd-0f6a5081d875051e1b6275096d25332e66f0458c.tar.bz2 hurd-0f6a5081d875051e1b6275096d25332e66f0458c.zip |
libdiskfs: fix and improve locking in nrefs/nput.
* libnetfs/node-nput.c: Do not unlock the node since it will be unlocked
later.
* libnetfs/node-nrele.c: Do not lock the node twice if not needed.
Diffstat (limited to 'libdiskfs/node-nput.c')
-rw-r--r-- | libdiskfs/node-nput.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libdiskfs/node-nput.c b/libdiskfs/node-nput.c index d23c1037..d59769b6 100644 --- a/libdiskfs/node-nput.c +++ b/libdiskfs/node-nput.c @@ -56,7 +56,6 @@ diskfs_nput (struct node *np) hold a weak reference ourselves. */ diskfs_try_dropping_softrefs (np); } - pthread_mutex_unlock (&np->lock); } /* Finally get rid of our reference. */ |