Displaying 1 result from an estimated 1 matches for "loop_caching_nowait".
2010 Apr 19
0
Memory barrier not required in cached_block_group
...roup.This means there is a causal relationship between
cache->cached variable and the block_group returned.So x86 or x86-64
should not reorder it.However,Alpha might reorder it.So memory barrier
maybe required in Alpha case.
Again,in function find_free_extent the code snippet is
if (loop > LOOP_CACHING_NOWAIT ||
(loop > LOOP_FIND_IDEAL &&
atomic_read(&space_info->caching_threads) < 2)) {
ret = cache_block_group(block_group);
BUG_ON(ret);
}
In this code also I believe the architecture should not reorder the
read with atomic_read of caching_...