1. 13 Jun, 2009 2 commits
    • Vegard Nossum's avatar
      tasklets: new tasklet scheduling function · 7c692cba
      Vegard Nossum authored
      Rationale: kmemcheck needs to be able to schedule a tasklet without
      touching any dynamically allocated memory _at_ _all_ (since that would
      lead to a recursive page fault). This tasklet is used for writing the
      error reports to the kernel log.
      
      The new scheduling function avoids touching any other tasklets by
      inserting the new tasklist as the head of the "tasklet_hi" list instead
      of on the tail.
      
      Also don't wake up the softirq thread lest the scheduler access some
      tracked memory and we go down with a recursive page fault.
      
      In this case, we'd better just wait for the maximum time of 1/HZ for the
      message to appear.
      Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
      7c692cba
    • Pekka Enberg's avatar
      slab: move struct kmem_cache to headers · 8eae985f
      Pekka Enberg authored
      Move the SLAB struct kmem_cache definition to <linux/slab_def.h> like
      with SLUB so kmemcheck can access ->ctor and ->flags.
      
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Christoph Lameter <clameter@sgi.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      
      [rebased for mainline inclusion]
      Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
      8eae985f
  2. 12 Jun, 2009 38 commits