[SCSI] mptfusion: schedule_target_reset from all Reset context
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 09:10:56 +0000 (14:40 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:34 +0000 (12:02 -0500)
commitb68bf096d4211bb6490955f86842d8291e8ae218
treec512c93f8effded33b4318e3d7e25217a86897a5
parent51106ab5306b752cd53d40626f78774276bb1368
[SCSI] mptfusion: schedule_target_reset from all Reset context

Issue:
target reset will be queued to driver's internal queue to get schedule
later. When driver add target into internal target_reset queue we will block IOs
on those target using scsi midlayer API. Now due to some cause driver is not
executing those target_reset list and it is always in block state.

Changes:
now we are clearing target_reset queue from all other Callback context
instead of only DeviceReset context.Now wherever driver is clearing
taskmgmt_in_progress flag it is considering target_reset queue cleanup
also.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptctl.c
drivers/message/fusion/mptsas.c
drivers/message/fusion/mptscsih.c