Changeset f57f8ea in mainline for uspace/srv/vfs/vfs_open.c


Ignore:
Timestamp:
2008-01-02T20:25:24Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9413c0d
Parents:
215e375
Message:

Rename unlink_futex to namespace_futex and introduce a new futex for serializing
concurrent access to a VFS node's contents by multiple clients.

File:
1 edited

Legend:

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

    r215e375 rf57f8ea  
    9494         * triplet.
    9595         */
    96         futex_down(&unlink_futex);
     96        futex_down(&namespace_futex);
    9797
    9898        /*
     
    102102        rc = vfs_lookup_internal(path, size, &triplet, NULL);
    103103        if (rc) {
    104                 futex_up(&unlink_futex);
     104                futex_up(&namespace_futex);
    105105                ipc_answer_0(rid, rc);
    106106                free(path);
     
    114114
    115115        vfs_node_t *node = vfs_node_get(&triplet);
    116         futex_up(&unlink_futex);
     116        futex_up(&namespace_futex);
    117117
    118118        /*
Note: See TracChangeset for help on using the changeset viewer.