[SCSI] mpt2sas: setting SDEV into RUNNING state from Interrupt context
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 20 Aug 2009 07:53:19 +0000 (13:23 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 5 Sep 2009 14:35:48 +0000 (09:35 -0500)
commit34a03bef2202d0c9983a8da0a8abaee37d285847
tree50d1c2ed4aa4a10eaeb50923a473a51b5356246a
parentcc0f5207664f85da8d0b2ebdacec5daaee0ce95f
[SCSI] mpt2sas: setting SDEV into RUNNING state from Interrupt context

Changing SDEV Running state from interrupt context. Previously It was
handle in work queue thread. With this change It will not wait for work
queue thread to execute scsih_ublock_io_device to put SDEV into Running
state. This will reduce delay for Device becoming RUNNING.

Modified this patch considering James comment "Not to change SDEV state
using  scsi_device_set_state API, instead use scsi_internal_device_unblock
scsi_internal_device_block API"

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Reviewed-by: Eric Moore <Eric.moore@lsi.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_scsih.c