• Shaohua Li's avatar
    percpu_counter: make APIs irq safe · 098faf58
    Shaohua Li authored
    In my usage, sometimes the percpu APIs are called with irq locked,
    sometimes not. lockdep complains there is potential deadlock. Let's
    always use percpucounter lock in irq safe way. There should be no
    performance penality, as all those are slow code path.
    
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarShaohua Li <shli@fusionio.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    098faf58
percpu_counter.c 5.26 KB