Changeset 248fc1a in mainline for generic/src/mm/slab.c


Ignore:
Timestamp:
2006-02-05T13:56:01Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
444ec64
Parents:
e22f561
Message:

Fixed some typos in slab allocator.
Scheduler now has better algorithm on load balancing.
Unfortunately it reveals deadlock in slab allocator :-/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/slab.c

    re22f561 r248fc1a  
    253253                list_remove(&slab->link);
    254254                list_prepend(&slab->link, &cache->partial_slabs);
    255                 spinlock_unlock(&cache->slablock);
    256         }
     255        }
     256        spinlock_unlock(&cache->slablock);
    257257        return 0;
    258258}
     
    537537        int i;
    538538        int pages;
     539        ipl_t ipl;
    539540
    540541        memsetb((__address)cache, sizeof(*cache), 0);
     
    581582                cache->flags |= SLAB_CACHE_SLINSIDE;
    582583
     584        /* Add cache to cache list */
     585        ipl = interrupts_disable();
    583586        spinlock_lock(&slab_cache_lock);
    584587
     
    586589
    587590        spinlock_unlock(&slab_cache_lock);
     591        interrupts_restore(ipl);
    588592}
    589593
     
    759763        slab_cache_t *cache;
    760764        link_t *cur;
    761 
     765        ipl_t ipl;
     766       
     767        ipl = interrupts_disable();
    762768        spinlock_lock(&slab_cache_lock);
    763769        printf("SLAB name\tOsize\tPages\tObj/pg\tSlabs\tCached\tAllocobjs\tCtl\n");
     
    772778        }
    773779        spinlock_unlock(&slab_cache_lock);
     780        interrupts_restore(ipl);
    774781}
    775782
Note: See TracChangeset for help on using the changeset viewer.