isci: merge port ready substates into primary state machine
authorPiotr Sawicki <piotr.sawicki@intel.com>
Wed, 11 May 2011 23:52:21 +0000 (23:52 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:49 +0000 (04:04 -0700)
commite91f41ef809a2d1b8cdba52ac380aecd706c93dd
tree3b3a82136e398355f0b7e07215741798a6007233
parentc777c26ca2a06164e1b8c8ccf4cd76cd645a9bbb
isci: merge port ready substates into primary state machine

This conversion was complicated by the fact that the ready state exit routine
took unconditional action beyond just stopping the substate machine (like in
previous conversions).  In order to ensure identical behaviour every state
transition needs to be instrumented to catch ready-->!ready transitions and
execute scic_sds_port_invalidate_dummy_remote_node()

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Piotr Sawicki <piotr.sawicki@intel.com>
[fix ready state exit handling]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/port.c
drivers/scsi/isci/port.h