Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c69646f8 in mainline


Ignore:
Timestamp:
2011-09-09T15:50:00Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
5da7199
Parents:
7c014d1
Message:

Fix deadlock caused by a too early released exchange.

File:
1 edited

Legend:

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

    r7c014d1 rc69646f8  
    224224        }
    225225       
     226        /*
     227         * Wait for the answer before releasing the exchange to avoid deadlock
     228         * in case the answer depends on further calls to the same file system.
     229         * Think of a case when mounting a FS on a file_bd backed by a file on
     230         * the same FS.
     231         */
     232        async_wait_for(msg, &rc);
    226233        vfs_exchange_release(exch);
    227         async_wait_for(msg, &rc);
    228234       
    229235        if (rc == EOK) {
Note: See TracChangeset for help on using the changeset viewer.