linux/drivers/scsi/qla2xxx
James Bottomley 563585ec4b [SCSI] qla2xxx: Fix race that could hang kthread_stop()
There is a small race window in qla2x00_do_dpc() between
checking for kthread_should_stop() and going to sleep after
setting TASK_INTERRUPTIBLE. If qla2x00_free_device() is called
in this window, kthread_stop will wait forever because there
will be no one to wake up the process.

Fix by making sure we only set TASK_INTERRUPTIBLE before checking
kthread_stop().

Reported-by: Bandan Das <bandan.das@stratus.com>
Acked-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2011-02-12 10:17:13 -06:00
..
Kconfig [SCSI] qla2xxx: Update firmware filenames for new ISP parts. 2008-04-07 12:19:11 -05:00
Makefile [SCSI] qla2xxx: Add ISP82XX support. 2010-05-01 14:11:17 -05:00
qla_attr.c [SCSI] qla2xxx: Add sysfs node for displaying board temperature. 2010-12-23 16:04:37 -06:00
qla_bsg.c [SCSI] qla2xxx: Fix to avoid recursive lock failure during BSG timeout. 2010-12-23 16:09:33 -06:00
qla_bsg.h [SCSI] qla2xxx: Add flash read/update support using BSG interface 2010-10-25 16:00:40 -05:00
qla_dbg.c [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_dbg.h [SCSI] qla2xxx: Fix vport delete issues 2010-09-05 15:13:12 -03:00
qla_def.h [SCSI] qla2xxx: Add sysfs node for displaying board temperature. 2010-12-23 16:04:37 -06:00
qla_devtbl.h [SCSI] qla2xxx: fix Kernel Panic with Qlogic 2472 Card. 2009-02-10 11:15:18 -05:00
qla_dfs.c [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_fw.h [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_gbl.h [SCSI] qla2xxx: Remove code to not reset ISP82xx on failure. 2010-12-23 16:07:55 -06:00
qla_gs.c [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_init.c [SCSI] qla2xxx: Don't perform a BIG_HAMMER if Get-ID (0x20) mailbox command fails on CNAs. 2010-12-23 16:06:39 -06:00
qla_inline.h [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_iocb.c [SCSI] qla2xxx: Populate Command Type 6 LUN field properly. 2010-12-09 13:24:11 -06:00
qla_isr.c [SCSI] qla2xxx: Display mailbox register 4 during 8012 AEN for ISP82XX parts. 2010-12-23 16:07:42 -06:00
qla_mbx.c [SCSI] qla2xxx: Add sysfs node for displaying board temperature. 2010-12-23 16:04:37 -06:00
qla_mid.c [SCSI] qla2xxx: make rport deletions explicit during vport removal 2010-09-05 15:13:13 -03:00
qla_nx.c [SCSI] qla2xxx: Use sg_next to fetch next sg element while walking sg list. 2010-12-23 16:09:47 -06:00
qla_nx.h [SCSI] qla2xxx: Code cleanup to remove unwanted comments and code. 2010-12-23 16:02:22 -06:00
qla_os.c [SCSI] qla2xxx: Fix race that could hang kthread_stop() 2011-02-12 10:17:13 -06:00
qla_settings.h [SCSI] qla2xxx: Update copyright banner. 2010-07-28 09:06:16 -05:00
qla_sup.c [SCSI] qla2xxx: Populate FCP_PRIO location for no *FLT* case 2010-12-23 15:44:28 -06:00
qla_version.h [SCSI] qla2xxx: Update version number to 8.03.05-k0. 2010-12-09 13:25:51 -06:00