Add reschedule to metadata hash init

Signed-off-by: Ostrokrzew <slawomir.jankowski@intel.com>
This commit is contained in:
Ostrokrzew 2019-12-17 09:56:45 +01:00
parent 57e6b96791
commit fc1847cf55

View File

@ -1092,9 +1092,11 @@ static inline void _ocf_init_collision_entry(struct ocf_cache *cache,
static void ocf_metadata_hash_init_collision(struct ocf_cache *cache)
{
unsigned int i;
unsigned int step = 0;
for (i = 0; i < cache->device->collision_table_entries; i++) {
_ocf_init_collision_entry(cache, i);
OCF_COND_RESCHED_DEFAULT(step);
}
}