linux/drivers/pcmcia
Dmitry Eremin-Solenikov d3046ba809 pcmcia: fix a boot time warning in pcmcia cs code
During bootup pcmcia (pccardd) code enforces the following warning
backtrace:

do not call blocking ops when !TASK_RUNNING; state=1 set at [<c0319e74>] pccardd+0xb8/0x3fc
Modules linked in:
CPU: 0 PID: 14 Comm: pccardd Not tainted 4.0.0-rc6+ #11
Hardware name: Sharp-Collie
[<c0105cd8>] (unwind_backtrace) from [<c0103ef8>] (show_stack+0x10/0x14)
[<c0103ef8>] (show_stack) from [<c010e9b8>] (warn_slowpath_common+0x74/0xac)
[<c010e9b8>] (warn_slowpath_common) from [<c010ea20>] (warn_slowpath_fmt+0x30/0x40)
[<c010ea20>] (warn_slowpath_fmt) from [<c012b1b4>] (__might_sleep+0x84/0xa0)
[<c012b1b4>] (__might_sleep) from [<c040fbb0>] (mutex_lock_nested+0x24/0x388)
[<c040fbb0>] (mutex_lock_nested) from [<c0319eb4>] (pccardd+0xf8/0x3fc)
[<c0319eb4>] (pccardd) from [<c0127370>] (kthread+0xdc/0xfc)
[<c0127370>] (kthread) from [<c01013a8>] (ret_from_fork+0x14/0x2c)
---[ end trace fd94911637eed4ba ]---

This happens due to kthread trying to lock mutex in a TASK_INTERRUPTIBLE
state. Limit TASK_INTERRUPTIBLE task state to the schedule() call only,
so that the rest of the code runs in TASK_RUNNING state.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-24 12:24:35 -07:00
..
at91_cf.c ARM: at91: remove NEED_MACH_IO_H 2015-03-13 15:11:04 +01:00
bcm63xx_pcmcia.c pcmcia: remove DEFINE_PCI_DEVICE_TABLE usage 2014-07-18 16:58:07 -07:00
bcm63xx_pcmcia.h
bfin_cf_pcmcia.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
cardbus.c pcmcia: Use pci_is_bridge() to simplify code 2014-05-27 14:58:24 -06:00
cirrus.h
cistpl.c pcmcia: handle anonymous cards by generating a fake CIS 2015-01-12 05:04:12 -08:00
cs_internal.h pcmcia: correct types 2015-01-12 05:04:12 -08:00
cs.c pcmcia: fix a boot time warning in pcmcia cs code 2015-05-24 12:24:35 -07:00
db1xxx_ss.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
ds.c pcmcia: Fix requery 2015-01-12 05:04:12 -08:00
electra_cf.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
i82092.c pcmcia: remove DEFINE_PCI_DEVICE_TABLE usage 2014-07-18 16:58:07 -07:00
i82092aa.h
i82365.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
i82365.h
Kconfig ARM: SoC cleanups for v4.1 2015-04-22 09:04:39 -07:00
m32r_cfc.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
m32r_cfc.h
m32r_pcc.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
m32r_pcc.h
Makefile Revert "pcmcia: add a new resource manager for non ISA systems" 2015-03-11 14:21:23 +01:00
o2micro.h
omap_cf.c pcmcia: Use setup_timer 2015-03-16 21:31:43 +01:00
pcmcia_cis.c
pcmcia_resource.c Revert wrong fixes for common misspellings 2011-04-26 23:31:11 -07:00
pd6729.c pcmcia: Use setup_timer and mod_timer 2015-03-16 21:31:43 +01:00
pd6729.h
pxa2xx_balloon3.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_base.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
pxa2xx_base.h
pxa2xx_cm_x2xx.c ARM: PXA: fix includes in pxa2xx_cm_x2xx PCMCIA driver 2011-11-05 22:26:46 +00:00
pxa2xx_cm_x255.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_cm_x270.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_colibri.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_e740.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_hx4700.c pcmcia: add driver for hx4700 2012-05-07 09:56:39 +08:00
pxa2xx_mainstone.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_palmld.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_palmtc.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_palmtx.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_sharpsl.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
pxa2xx_stargate2.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_trizeps4.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
pxa2xx_viper.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
pxa2xx_vpac270.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
ricoh.h
rsrc_iodyn.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
rsrc_mgr.c pcmcia: correct types 2015-01-12 05:04:12 -08:00
rsrc_nonstatic.c Merge branch 'master' into for-next 2013-01-29 10:48:30 +01:00
sa11xx_base.c ARM: 8247/2: pcmcia: sa1100: make use of device clock 2014-12-05 16:30:33 +00:00
sa11xx_base.h
sa1100_assabet.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
sa1100_cerf.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
sa1100_generic.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
sa1100_generic.h
sa1100_h3600.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
sa1100_nanoengine.c PCMCIA: soc_common: remove explicit wrprot initialization in socket drivers 2012-02-21 14:27:04 +00:00
sa1100_shannon.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
sa1100_simpad.c pcmcia: remove use of __devinit 2012-11-28 12:10:16 -08:00
sa1111_badge4.c pcmcia: sa1111: pass sa1111_dev to badge4-specific code 2014-11-07 11:24:01 -08:00
sa1111_generic.c Char/Misc driver patches for 3.19-rc1 2014-12-14 16:43:47 -08:00
sa1111_generic.h pcmcia: sa1111: pass sa1111_dev to jornada720 code 2014-11-07 11:24:01 -08:00
sa1111_jornada720.c pcmcia: sa1111: pass sa1111_dev to jornada720 code 2014-11-07 11:24:01 -08:00
sa1111_lubbock.c PCMCIA: sa1111: rename sa1111 socket drivers to have sa1111_ prefix. 2012-02-21 14:27:18 +00:00
sa1111_neponset.c Merge branch 'platforms' of git://git.linaro.org/people/rmk/linux-arm 2012-03-27 18:17:02 -07:00
soc_common.c pcmcia: Use setup_timer 2015-03-16 21:31:43 +01:00
soc_common.h PCMCIA: soc_common: remove soc_pcmcia_*_irqs functions 2012-02-21 14:27:03 +00:00
socket_sysfs.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
tcic.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
tcic.h
ti113x.h Fix common misspellings 2011-03-31 11:26:23 -03:00
topic.h
vg468.h
vrc4171_card.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
vrc4173_cardu.c pcmcia: remove DEFINE_PCI_DEVICE_TABLE usage 2014-07-18 16:58:07 -07:00
vrc4173_cardu.h
xxs1500_ss.c pcmcia: drop owner assignment from platform_drivers 2014-10-20 16:21:21 +02:00
yenta_socket.c pcmcia: Use setup_timer and mod_timer 2015-03-16 21:31:43 +01:00
yenta_socket.h