Changeset 24548
- Timestamp:
- 03/24/08 00:15:42 (2 months ago)
- Files:
-
- haiku/trunk/src/system/kernel/vm/vm_cache.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/src/system/kernel/vm/vm_cache.cpp
r23334 r24548 546 546 ASSERT_LOCKED_MUTEX(&consumer->lock); 547 547 548 // Remove the store ref before locking the cache. Otherwise we'd call into 549 // the VFS while holding the cache lock, which would reverse the usual 550 // locking order. 551 if (cache->store->ops->release_ref) 552 cache->store->ops->release_ref(cache->store); 553 548 554 // remove the consumer from the cache, but keep its reference until later 549 555 mutex_lock(&cache->lock); 550 556 list_remove_item(&cache->consumers, consumer); 551 557 consumer->source = NULL; 552 553 if (cache->store->ops->release_ref)554 cache->store->ops->release_ref(cache->store);555 558 556 559 if (cache->areas == NULL && cache->source != NULL
