All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Riemer <sebastian.riemer-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@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: Wed, 10 Jul 2013 18:34:38 +0200	[thread overview]
Message-ID: <51DD8D1E.6000605@profitbricks.com> (raw)
In-Reply-To: <51DD7F83.4070402-HInyCGIudOg@public.gmane.org>

Hi Bart,

my patch looks very similar. I was in a company meeting so I couldn't
send it fast enough.

Can be applied that way! Thanks!

Cheers,
Sebastian


On 10.07.2013 17:36, 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;
> 

--
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

  parent reply	other threads:[~2013-07-10 16:34 UTC|newest]

Thread overview: 11+ 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
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 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 [this message]
2013-07-10 16:56                 ` David Dillow
2013-07-15 16:33                 ` Vu Pham
2013-07-15 16:34                 ` Vu Pham

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=51DD8D1E.6000605@profitbricks.com \
    --to=sebastian.riemer-eikl63zcoxah+58jc4qpia@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=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 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.