From 87e0192ad6b08190df7a93ad93e63380772c3977 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 2 Jan 2017 13:13:11 +0100 Subject: Fix locking according to netfs changes 5eef605eb523e4148ccd22578327492178cfd0c4 ('netfs: Remove global reference count lock.') --- netfs.c | 6 ++---- 1 file 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) -- cgit v1.2.3