Changeset 956d4df8 in mainline


Ignore:
Timestamp:
2011-02-04T22:15:08Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfd630af
Parents:
b366a1bc
Message:

Do not forget to unlock the block structure before freeing it.

Even though this happens when there is no reference to the block,
unlocking here may be essential from the point of view of the
deadlock detection code which could otherwise become confused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    rb366a1bc r956d4df8  
    626626                        unsigned long key = block->lba;
    627627                        hash_table_remove(&cache->block_hash, &key, 1);
     628                        fibril_mutex_unlock(&block->lock);
    628629                        free(block->data);
    629630                        free(block);
Note: See TracChangeset for help on using the changeset viewer.