summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/netfs.c b/netfs.c
index 6b105f91..e98af752 100644
--- a/netfs.c
+++ b/netfs.c
@@ -163,8 +163,12 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
free all its associated storage. */
void netfs_node_norefs (struct node *np)
{
+ spin_unlock (&netfs_node_refcnt_lock);
+
procfs_cleanup (np);
free (np);
+
+ spin_lock (&netfs_node_refcnt_lock);
}