Merge pull request #325 from Ostrokrzew/upstream

Add reschedule to metadata hash init
This commit is contained in:
Michał Mielewczyk 2019-12-17 10:08:30 +01:00 committed by GitHub
commit 6a753570b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) static void ocf_metadata_hash_init_collision(struct ocf_cache *cache)
{ {
unsigned int i; unsigned int i;
unsigned int step = 0;
for (i = 0; i < cache->device->collision_table_entries; i++) { for (i = 0; i < cache->device->collision_table_entries; i++) {
_ocf_init_collision_entry(cache, i); _ocf_init_collision_entry(cache, i);
OCF_COND_RESCHED_DEFAULT(step);
} }
} }