]> git.karo-electronics.de Git - karo-tx-linux.git/commit
percpu_counter: make APIs irq safe
authorShaohua Li <shli@fusionio.com>
Thu, 24 Oct 2013 08:06:45 +0000 (09:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Oct 2013 10:23:22 +0000 (11:23 +0100)
commit5809777ebdc026f1535fecedf32d7fc8e4a435ed
tree7ca99360383e9136d1dbe27fc435f15e546bba4b
parent60aa029d5bec09248e3d2abcb0d9f87faaf277ef
percpu_counter: make APIs irq safe

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: Shaohua Li <shli@fusionio.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/percpu_counter.c