diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 13:13:11 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 13:13:11 +0100 |
commit | 87e0192ad6b08190df7a93ad93e63380772c3977 (patch) | |
tree | d839c8d8f7a503866806001da705bf6c1d631d65 | |
parent | d2c8928d306861a39cc7c341e09f7e66b8f1c649 (diff) |
Fix locking according to netfs changes
5eef605eb523e4148ccd22578327492178cfd0c4 ('netfs: Remove global
reference count lock.')
-rw-r--r-- | netfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |