ibmvscsi: Abort init sequence during error recovery
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 23 May 2014 15:52:10 +0000 (10:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:13:59 +0000 (11:13 -0700)
commitd383fcfd183759a78753d337e8a1a10f08984063
tree2daba8f2e60ecfc94bbecfbe2234e396c22b85f3
parent75dca413752fb5cb8a2b8357d3a68f1f7af0cc95
ibmvscsi: Abort init sequence during error recovery

commit 9ee755974bea2f9880e517ec985dc9dede1b3a36 upstream.

If a CRQ reset is triggered for some reason while in the middle
of performing VSCSI adapter initialization, we don't want to
call the done function for the initialization MAD commands as
this will only result in two threads attempting initialization
at the same time, resulting in failures.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ibmvscsi/ibmvscsi.c