Changeset 230260ac in mainline for uspace/srv/vfs/vfs_node.c


Ignore:
Timestamp:
2009-06-09T22:27:43Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e31a2b
Parents:
041186f
Message:

Make VFS use the new synchronization for fibrils. Now there should be no (or
only secondary) fibril serialization. Code reorganized not to hold the phone
lock during async_wait_for() in most cases. Tested on ia32. On amd64, VFS
crashes, but I think it is an unrelated problem.

File:
1 edited

Legend:

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

    r041186f r230260ac  
    4040#include <string.h>
    4141#include <futex.h>
    42 #include <rwlock.h>
     42#include <fibril_sync.h>
    4343#include <adt/hash_table.h>
    4444#include <assert.h>
     
    178178                node->type = result->type;
    179179                link_initialize(&node->nh_link);
    180                 rwlock_initialize(&node->contents_rwlock);
     180                fibril_rwlock_initialize(&node->contents_rwlock);
    181181                hash_table_insert(&nodes, key, &node->nh_link);
    182182        } else {
Note: See TracChangeset for help on using the changeset viewer.