]> 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)
commit1072bab1cd77dd83efaea2c9b3f8ccc7c6c7264b
treeb58d13c01567500e7b0a451bbcd46dd78ceb4da7
parentfe3b8767aa97453a85777f84d997fb1d6f872b5a
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]