Changeset d3cce52 in mainline


Ignore:
Timestamp:
2010-12-26T17:21:16Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3a1ade3
Parents:
c1c0184
Message:

No need so serialize transactions on fsd session in VFS.

Location:
uspace/srv/vfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    rc1c0184 rd3cce52  
    5454        vfs_info_t vfs_info;
    5555        fs_handle_t fs_handle;
    56         fibril_mutex_t phone_lock;
    5756        async_sess_t session;
    5857} fs_info_t;
  • uspace/srv/vfs/vfs_register.c

    rc1c0184 rd3cce52  
    138138       
    139139        link_initialize(&fs_info->fs_link);
    140         fibril_mutex_initialize(&fs_info->phone_lock);
    141140        fs_info->vfs_info = *vfs_info;
    142141        free(vfs_info);
     
    275274                if (fs->fs_handle == handle) {
    276275                        fibril_mutex_unlock(&fs_head_lock);
    277                         fibril_mutex_lock(&fs->phone_lock);
    278276                        phone = async_transaction_begin(&fs->session);
    279                         fibril_mutex_unlock(&fs->phone_lock);
    280277
    281278                        assert(phone > 0);
     
    301298                if (fs->fs_handle == handle) {
    302299                        fibril_mutex_unlock(&fs_head_lock);
    303                         fibril_mutex_lock(&fs->phone_lock);
    304300                        async_transaction_end(&fs->session, phone);
    305                         fibril_mutex_unlock(&fs->phone_lock);
    306301                        return;
    307302                }
Note: See TracChangeset for help on using the changeset viewer.