]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] ibmvfc: Fixup host state during reinit
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 15 Aug 2008 15:59:22 +0000 (10:59 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 16 Aug 2008 15:48:25 +0000 (10:48 -0500)
commit915be024414c52e311f795566ac938223ba3c847
tree85f488b8bbf6d7379500764b3595f541c207a9bf
parent3eddc569770a76f2ca65621cdde3c0a2552b5b0c
[SCSI] ibmvfc: Fixup host state during reinit

If an ELS is received while the virtual fibre channel adapter is going
through its discovery, a flag is set which causes discovery to get
re-driven. However, the hosts's state does not get set back to
IBMVFC_INITIALIZING and scsi_block_requests does not get called again,
which can result in queuecommand ops getting sent during
discovery. This should not occur and may cause problems. One example
is that we may no longer be logged into the target we send the command
to, resulting in a failure which should not have occurred.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvfc.c