]> git.karo-electronics.de Git - karo-tx-linux.git/commit
isci: Fix RNC AWAIT_SUSPENSION->INVALIDATING transition.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Tue, 13 Mar 2012 23:36:35 +0000 (16:36 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Apr 2012 07:14:37 +0000 (00:14 -0700)
commit1a449b57809cf074b9f9358a52aa13fe92fcef29
treef7b698c92e3b14453b4ea72f22bdb3bb47ecd0ac
parent4581268c40a980803200377d36ddaa55980d1c12
isci: Fix RNC AWAIT_SUSPENSION->INVALIDATING transition.

The RNC state machine would incorrectly transition from
SCI_RNC_AWAIT_SUSPENSION directly to SCI_RNC_INVALIDATING when a destruct
request was made.  This would skip the increment of the suspension count
and the abort of pending TCs (although the invalidating state would at
least cleanup outstanding TCs).

Instead, the RNC will transition to SCI_RNC_SUSPENDED and then start the
destruction process.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/remote_node_context.c