diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-03-31 11:06:16 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:00:37 -0400 |
commit | 524b5f723be8a1d966c1285d69810bc461f181c2 (patch) | |
tree | fe9843f60e832d326f7b72bbe64aaf0c94424b3a /drivers/scsi/isci/host.c | |
parent | 78141676784ed190ce2546f97a7d6368f21e450b (diff) |
isci: simplify request state handlers
Instead of filling up tables with default handlers call the default
handler in the only caller.
IMHO the whole state handlers concept is not very suitable for the
isci request. For example there is a single real instance of the
start handler, and we'd be much better off just having a check for
the right state in the only caller, than all this mess. It's
quite similar for the abort handler as well.
Even the actual state machine has a lot of states that are rather
pointless. The initial and constructed states are not needed at all
as the request is not reachable for calls before it's fully set up and
started. And the abort state should be replaced with an abort actions
and a state transition to the completed state.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.c')
0 files changed, 0 insertions, 0 deletions