kernel-ark/drivers/pps
Alexander Gordeev 2a5cd6e2fb pps: make idr lock a mutex and protect idr_pre_get
Now pps_idr_lock is never used in interrupt context so we can replace
spin_lock_irq/spin_unlock_irq with plain spin_lock/spin_unlock. But
there is also a potential race condition when someone can steal an id
which was allocated by idr_pre_get before it is used. So convert spin
lock to mutex and protect the whole id generation process.

Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
Cc: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:03:20 -08:00
..
clients pps: convert printk/pr_* to dev_* 2011-01-13 08:03:19 -08:00
kapi.c pps: move idr stuff to pps.c 2011-01-13 08:03:20 -08:00
Kconfig pps: LinuxPPS clients support 2010-03-12 15:52:43 -08:00
Makefile pps: LinuxPPS clients support 2010-03-12 15:52:43 -08:00
pps.c pps: make idr lock a mutex and protect idr_pre_get 2011-01-13 08:03:20 -08:00
sysfs.c