Changeset b3c38750 in mainline for uspace/srv/vfs/vfs_mount.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_mount.c
r9413c0d rb3c38750 183 183 * We already have the root FS. 184 184 */ 185 futex_down(&namespace_futex);185 rwlock_writer_lock(&namespace_rwlock); 186 186 rc = vfs_lookup_internal(buf, size, &mp, NULL); 187 187 if (rc != EOK) { … … 189 189 * The lookup failed for some reason. 190 190 */ 191 futex_up(&namespace_futex);191 rwlock_writer_unlock(&namespace_rwlock); 192 192 futex_up(&rootfs_futex); 193 193 vfs_node_put(mr_node); /* failed -> drop reference */ … … 198 198 mp_node = vfs_node_get(&mp); 199 199 if (!mp_node) { 200 futex_up(&namespace_futex);200 rwlock_writer_unlock(&namespace_rwlock); 201 201 futex_up(&rootfs_futex); 202 202 vfs_node_put(mr_node); /* failed -> drop reference */ … … 210 210 * This prevents the mount point from being deleted. 211 211 */ 212 futex_up(&namespace_futex);212 rwlock_writer_unlock(&namespace_rwlock); 213 213 } else { 214 214 /*
Note:
See TracChangeset
for help on using the changeset viewer.