]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] qla4xxx: fix host reset dpc race
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 4 Mar 2008 19:26:53 +0000 (13:26 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 5 Mar 2008 18:03:17 +0000 (12:03 -0600)
commitb55ea71643d8445f952a439e5d67085d481982ca
treef7f035b965da8850078f48a039a10d2ed541d1b2
parentc3b4d1d632881624285ad76188cb59efea5ee439
[SCSI] qla4xxx: fix host reset dpc race

The host reset callout could be starting to reset the hba at the same
time the dpc thread is. This creates lots of problems because they both
want to do wierd things with the firmware and interrupts, etc.

This patch just has the host reset function fully shutdown the dpc
thread before resetting the hba.

This patch also moves the setting of the session online bit to fix
a potential race with the dpc thread and iscsi recovery thread.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: David C Somayajulu <david.somayajulu@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla4xxx/ql4_init.c
drivers/scsi/qla4xxx/ql4_os.c