]> git.baikalelectronics.ru Git - kernel.git/commit
ida: make ida_simple_get/put() IRQ safe
authorTejun Heo <tj@kernel.org>
Wed, 2 Nov 2011 20:38:46 +0000 (13:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Nov 2011 23:07:00 +0000 (16:07 -0700)
commitc141ea4b98cb1e38f21d1d90c57c3754f3f91e7e
tree0a2fbbec4adf2839e29cb1425644096d7ed6ae00
parent66e56ca8ba98b2da790038784bf2dd3d449e5b40
ida: make ida_simple_get/put() IRQ safe

It's often convenient to be able to release resource from IRQ context.
Make ida_simple_*() use irqsave/restore spin ops so that they are IRQ
safe.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c