From: Vu Pham <vuhuong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Sebastian Riemer
<sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>
Subject: Re: [PATCH] IB/srp: Let srp_abort() return FAST_IO_FAIL if TL offline
Date: Mon, 15 Jul 2013 09:34:08 -0700 [thread overview]
Message-ID: <51E42480.8060008@mellanox.com> (raw)
In-Reply-To: <51DD7F83.4070402-HInyCGIudOg@public.gmane.org>
Bart Van Assche wrote:
> If the transport layer is offline it is more appropriate to let
> srp_abort() return FAST_IO_FAIL instead of SUCCESS.
>
> Signed-off-by: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
> Reported-by: Sebastian Riemer <sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
> Cc: David Dillow <dillowda-1Heg1YXhbW8@public.gmane.org>
> Cc: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>
> Cc: Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
> drivers/infiniband/ulp/srp/ib_srp.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
> index 9d8b46e..f93baf8 100644
> --- a/drivers/infiniband/ulp/srp/ib_srp.c
> +++ b/drivers/infiniband/ulp/srp/ib_srp.c
> @@ -1753,8 +1753,7 @@ static int srp_abort(struct scsi_cmnd *scmnd)
> if (!req || !srp_claim_req(target, req, scmnd))
> return FAILED;
> if (srp_send_tsk_mgmt(target, req->index, scmnd->device->lun,
> - SRP_TSK_ABORT_TASK) == 0 ||
> - target->transport_offline)
> + SRP_TSK_ABORT_TASK) == 0)
> ret = SUCCESS;
> else if (target->transport_offline)
> ret = FAST_IO_FAIL;
>
Hello Bart,
With this patch applied on top of v3, my fail-over test have run well.
Please queue it up with v4.
thanks,
-vu
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2013-07-15 16:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 17:36 [GIT PULL] please pull infiniband.git Roland Dreier
[not found] ` <1373391385-4978-1-git-send-email-roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-07-10 14:35 ` Sebastian Riemer
[not found] ` <51DD714D.4080001-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2013-07-10 14:38 ` Roland Dreier
2013-07-10 15:34 ` Bart Van Assche
[not found] ` <51DD7F10.1040104-HInyCGIudOg@public.gmane.org>
2013-07-10 15:36 ` [PATCH] IB/srp: Let srp_abort() return FAST_IO_FAIL if TL offline Bart Van Assche
[not found] ` <51DD7F83.4070402-HInyCGIudOg@public.gmane.org>
2013-07-10 16:34 ` Sebastian Riemer
2013-07-10 16:56 ` David Dillow
2013-07-15 16:33 ` Vu Pham
2013-07-15 16:34 ` Vu Pham [this message]
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=51E42480.8060008@mellanox.com \
--to=vuhuong-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=bvanassche-HInyCGIudOg@public.gmane.org \
--cc=dillowda-1Heg1YXhbW8@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
--cc=vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).