dahdi-linux/drivers/dahdi
Shaun Ruffell a170389509 dahdi: Close race between checking IOMUX condition and sleeping.
wake_up_interruptible() will change the state of waiting tasks back to
TASK_RUNNING, therefore, we want to ensure we set TASK_INTERRUPTIBLE
before checking the conditions that we're going to sleep on.

In practice, this closes a small window were the caller may be put to
sleep when the condition is true, and have to wait for another event to
come in order to wake from the sleep.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9467 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-04 16:40:44 +00:00
..
datamods wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
firmware dahdi: '-o' -> '--no-same-owner' in drivers/dahdi/firmware/Makefile 2010-10-20 12:22:42 +00:00
hpec Remove mutex emulation 2010-11-04 16:40:29 +00:00
oct612x wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
voicebus Remove mutex emulation 2010-11-04 16:40:29 +00:00
vpmadt032_loader wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcb4xxp wcb4xxp: Support beroNet BN4S0e PCI Express card 2010-10-20 17:52:47 +00:00
wct4xxp Minor logging text change 2010-10-25 20:01:54 +00:00
wctc4xxp Remove mutex emulation 2010-11-04 16:40:29 +00:00
wctdm24xxp Remove mutex emulation 2010-11-04 16:40:29 +00:00
wcte12xp wctdm24xxp, wcte12xp: Remove unused 'whichframe' parameter. 2010-10-20 12:23:26 +00:00
xpp Remove mutex emulation 2010-11-04 16:40:29 +00:00
adt_lec.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
adt_lec.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
arith.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
biquad.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_dummy.c dahdi_dummy: #include <linux/slab.h> for kzalloc and friends. 2010-09-07 13:47:24 +00:00
dahdi_dynamic_eth.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic_ethmf.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic_loc.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_dynamic.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi_echocan_jpah.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_echocan_kb1.c dahdi: Fix 'void *' pointer arithmetic warnings. 2010-09-29 21:32:55 +00:00
dahdi_echocan_mg2.c dahdi: Fix 'void *' pointer arithmetic warnings. 2010-09-29 21:32:55 +00:00
dahdi_echocan_oslec.c dahdi_echocan_oslec: Call olsec_hpf_tx if CONFIG_DAHDI_PROCESS_ECHOCAN_TX is defined. 2010-10-20 12:23:11 +00:00
dahdi_echocan_sec2.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_echocan_sec.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_transcode.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
dahdi-base.c dahdi: Close race between checking IOMUX condition and sleeping. 2010-11-04 16:40:44 +00:00
digits.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
ecdis.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
fir.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
fxo_modes.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Kbuild wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Kconfig wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Makefile wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
makefw.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
pciradio.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
pciradio.rbt wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
proslic.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
tor2-hw.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
tor2.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00
tormenta2.rbt wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcfxo.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wct1xxp.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00
wctdm.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
wcte11xp.c dahdi: Atomically set/test if channel has associated network device. 2010-10-20 12:23:16 +00:00