[SCSI] ibmvscsi: Send adapter info before login
authorBrian King <brking@linux.vnet.ibm.com>
Mon, 8 Jun 2009 21:19:04 +0000 (16:19 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 8 Jun 2009 23:05:18 +0000 (18:05 -0500)
commit3507e13fcba6b97501891a410ec8ef9f1f188620
tree61fe3efb517492be9af6ef3ec3b31d06f62921d0
parente1a5ce5b88d06344caec0c71b4ee33e7296358dd
[SCSI] ibmvscsi: Send adapter info before login

The ibmvscsi driver currently sends the SRP Login before sending the Adapter
Info MAD, which can result in commands getting sent to the virtual adapter
before we are ready for them. This results in a slight window where the target
devices may not behave as expected. Change the order and close the window.

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