summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-01-02 13:13:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-01-02 13:13:11 +0100
commit87e0192ad6b08190df7a93ad93e63380772c3977 (patch)
treed839c8d8f7a503866806001da705bf6c1d631d65
parentd2c8928d306861a39cc7c341e09f7e66b8f1c649 (diff)
Fix locking according to netfs changes
5eef605eb523e4148ccd22578327492178cfd0c4 ('netfs: Remove global reference count lock.')
-rw-r--r--netfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/netfs.c b/netfs.c
index 6a8009432..30c303d77 100644
--- a/netfs.c
+++ b/netfs.c
@@ -431,16 +431,14 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
{
err = 0; /* hey, we got it! */
- spin_lock(&netfs_node_refcnt_lock);
/* pthread_rwlock_rdlock(&nn->lock);
* we don't have to lock nn->lock since it's ref cannot become
- * invalid as we hold netfs_node_refcnt_lock
+ * invalid
*/
if((*node = nn->node))
- (*node)->references ++;
+ netfs_nref (*node);
- spin_unlock(&netfs_node_refcnt_lock);
/* pthread_rwlock_unlock(&nn->lock); */
if(! *node)