]> git.baikalelectronics.ru Git - kernel.git/commit
isci: merge ssp task management substates into primary state machine
authorDan Williams <dan.j.williams@intel.com>
Tue, 10 May 2011 09:28:47 +0000 (02:28 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:47 +0000 (04:04 -0700)
commitd9136570bbde54b1d67a1b82fd4da8e0d732c3b7
treeb58d13c01567500e7b0a451bbcd46dd78ceb4da7
parent808932d9a174602bf0f8aaa88d10a1e2fe54d469
isci: merge ssp task management substates into primary state machine

Remove usage of the request substate machine for ssp task management
requests identified by:
ireq->ttype == tmf_task && dev->dev_type == SAS_END_DEV;

The only routine that checks the base 'started' state is
scic_sds_io_request_tc_completion which calls the substate machine
handler if we are not in the 'started' state or we are 'started' and no
substate machine is defined.  This routine requires no conversion
because we have transitioned out of 'started' and the substate routine
will be called naturally as a result.

There are also no side effects of this conversion on exiting the
'started', state because it only stops the substate machine, which is no
longer relevant for this transaction type.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/Makefile
drivers/scsi/isci/request.c
drivers/scsi/isci/request.h
drivers/scsi/isci/ssp_request.c [deleted file]