diff options
author | Richard Braun <rbraun@sceen.net> | 2012-11-25 22:47:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-11-27 23:01:29 +0100 |
commit | 2490911ff4a4f5d8edf6058a97f71e8d75fc52a3 (patch) | |
tree | a17e3fc6789721c80d7428e5ed62eab0cc020f00 | |
parent | c3a12bcf68d01e0ade49cbdd307225b5ffa2d074 (diff) |
Move procfs to pthreads
-rw-r--r-- | netfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -208,10 +208,10 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir, error_t err; err = procfs_lookup (dir, name, np); - mutex_unlock (&dir->lock); + pthread_mutex_unlock (&dir->lock); if (! err) - mutex_lock (&(*np)->lock); + pthread_mutex_lock (&(*np)->lock); return err; } @@ -220,12 +220,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); + pthread_spin_unlock (&netfs_node_refcnt_lock); procfs_cleanup (np); free (np); - spin_lock (&netfs_node_refcnt_lock); + pthread_spin_lock (&netfs_node_refcnt_lock); } |