Changeset b3c38750 in mainline for uspace/srv/vfs/vfs_open.c
- Timestamp:
- 2008-01-06T13:08:32Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4db6eaf
- Parents:
- 9413c0d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_open.c
r9413c0d rb3c38750 39 39 #include <async.h> 40 40 #include <errno.h> 41 #include < futex.h>41 #include <rwlock.h> 42 42 #include <sys/types.h> 43 43 #include <stdlib.h> … … 94 94 * triplet. 95 95 */ 96 futex_down(&namespace_futex);96 rwlock_reader_lock(&namespace_rwlock); 97 97 98 98 /* … … 102 102 rc = vfs_lookup_internal(path, size, &triplet, NULL); 103 103 if (rc) { 104 futex_up(&namespace_futex);104 rwlock_reader_unlock(&namespace_rwlock); 105 105 ipc_answer_0(rid, rc); 106 106 free(path); … … 114 114 115 115 vfs_node_t *node = vfs_node_get(&triplet); 116 futex_up(&namespace_futex);116 rwlock_reader_unlock(&namespace_rwlock); 117 117 118 118 /*
Note:
See TracChangeset
for help on using the changeset viewer.