From: Nathan Fontenot <nfont@linux.vnet.ibm.com>
To: Brian King <brking@linux.vnet.ibm.com>,
James.Bottomley@HansenPartnership.com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCHv2 1/2] ibmvscsi: Abort init sequence during error recovery
Date: Tue, 27 May 2014 08:55:44 -0500 [thread overview]
Message-ID: <53849960.60505@linux.vnet.ibm.com> (raw)
In-Reply-To: <201405231552.s4NFqA9C027982@d01av01.pok.ibm.com>
On 05/23/2014 10:52 AM, Brian King wrote:
> 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>
> ---
>
> drivers/scsi/ibmvscsi/ibmvscsi.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff -puN drivers/scsi/ibmvscsi/ibmvscsi.c~ibmvscsi_purge_fix drivers/scsi/ibmvscsi/ibmvscsi.c
> --- linux/drivers/scsi/ibmvscsi/ibmvscsi.c~ibmvscsi_purge_fix 2014-05-23 10:36:04.000000000 -0500
> +++ linux-bjking1/drivers/scsi/ibmvscsi/ibmvscsi.c 2014-05-23 10:50:03.000000000 -0500
> @@ -797,7 +797,8 @@ static void purge_requests(struct ibmvsc
> evt->hostdata->dev);
> if (evt->cmnd_done)
> evt->cmnd_done(evt->cmnd);
> - } else if (evt->done)
> + } else if (evt->done && evt->crq.format != VIOSRP_MAD_FORMAT &&
> + evt->iu.srp.login_req.opcode != SRP_LOGIN_REQ)
> evt->done(evt);
> free_event_struct(&evt->hostdata->pool, evt);
> spin_lock_irqsave(hostdata->host->host_lock, flags);
> _
>
next prev parent reply other threads:[~2014-05-27 13:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 15:52 [PATCHv2 1/2] ibmvscsi: Abort init sequence during error recovery Brian King
2014-05-23 16:03 ` Bart Van Assche
2014-05-23 16:33 ` Brian King
2014-05-27 13:55 ` Nathan Fontenot [this message]
2014-06-13 15:30 ` Brian King
2014-06-13 15:49 ` James Bottomley
2014-06-13 16:17 ` Brian King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53849960.60505@linux.vnet.ibm.com \
--to=nfont@linux.vnet.ibm.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=brking@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.