Changeset b3c38750 in mainline for uspace/srv/vfs/vfs_unlink.c


Ignore:
Timestamp:
2008-01-06T13:08:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4db6eaf
Parents:
9413c0d
Message:

Turn the namespace futex into rwlock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_unlink.c

    r9413c0d rb3c38750  
    3636 */
    3737
    38 #include <atomic.h>
    39 #include <futex.h>
     38#include <rwlock.h>
    4039
    4140/**
    42  * This futex prevents the race between a triplet-to-VFS-node resolution and a
     41 * This rwlock prevents the race between a triplet-to-VFS-node resolution and a
    4342 * concurrent VFS operation which modifies the file system namespace.
    4443 */
    45 atomic_t namespace_futex = FUTEX_INITIALIZER;
     44RWLOCK_INITIALIZE(namespace_rwlock);
    4645
    4746/**
Note: See TracChangeset for help on using the changeset viewer.