Changeset e6bc3a5 in mainline


Ignore:
Timestamp:
2009-10-01T09:41:33Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17bf658
Parents:
3a8faba
Message:

fat_node_get_core() needs to take the ffn_mutex before it manipulates the
ffn_head list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r3a8faba re6bc3a5  
    185185                 */
    186186                fibril_mutex_lock(&idxp->nodep->lock);
    187                 if (!idxp->nodep->refcnt++)
     187                if (!idxp->nodep->refcnt++) {
     188                        fibril_mutex_lock(&ffn_mutex);
    188189                        list_remove(&idxp->nodep->ffn_link);
     190                        fibril_mutex_unlock(&ffn_mutex);
     191                }
    189192                fibril_mutex_unlock(&idxp->nodep->lock);
    190193                return idxp->nodep;
Note: See TracChangeset for help on using the changeset viewer.