Changeset 50b581d in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2012-04-21T09:23:39Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3a8e47
Parents:
0d520a2
Message:

Replace the async_wait_for(msg, NULL) pattern in the error paths with
async_forget(msg).

File:
1 edited

Legend:

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

    r0d520a2 r50b581d  
    137137                       
    138138                        if (rc != EOK) {
    139                                 async_wait_for(msg, NULL);
     139                                async_forget(msg);
    140140                                fibril_rwlock_write_unlock(&namespace_rwlock);
    141141                                async_answer_0(rid, rc);
     
    204204        if (rc != EOK) {
    205205                vfs_exchange_release(exch);
    206                 async_wait_for(msg, NULL);
     206                async_forget(msg);
    207207               
    208208                /* Mount failed, drop reference to mp_node. */
     
    219219        if (rc != EOK) {
    220220                vfs_exchange_release(exch);
    221                 async_wait_for(msg, NULL);
     221                async_forget(msg);
    222222               
    223223                /* Mount failed, drop reference to mp_node. */
Note: See TracChangeset for help on using the changeset viewer.