Fix dynamic slab insertion.

This commit is contained in:
Moinak Ghosh 2012-05-31 18:12:32 +05:30
parent 3cdfa86d65
commit b3fe43da1d

View file

@ -358,8 +358,8 @@ slab_cache_add(size_t size)
pthread_mutex_init(&(slab->slab_lock), NULL);
pthread_mutex_lock(&(slabheads[sindx].slab_lock));
slabheads[sindx].next = slab;
slab->next = slabheads[sindx].next;
slabheads[sindx].next = slab;
pthread_mutex_unlock(&(slabheads[sindx].slab_lock));
}
return (1);