Changeset 230260ac in mainline for uspace/srv/vfs/vfs_file.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_file.c

    r041186f r230260ac  
    4141#include <assert.h>
    4242#include <bool.h>
     43#include <fibril_sync.h>
    4344#include "vfs.h"
    4445
     
    9091                       
    9192                        memset(files[i], 0, sizeof(vfs_file_t));
    92                         futex_initialize(&files[i]->lock, 1);
     93                        fibril_mutex_initialize(&files[i]->lock);
    9394                        vfs_file_addref(files[i]);
    9495                        return (int) i;
Note: See TracChangeset for help on using the changeset viewer.