public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org>
To: Or Gerlitz <ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Cc: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
	linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 2/3] ib/iser: remove buggy back-pointer setting
Date: Wed, 05 May 2010 12:50:44 -0500	[thread overview]
Message-ID: <4BE1AFF4.30600@cs.wisc.edu> (raw)
In-Reply-To: <Pine.LNX.4.64.1005051730170.29957-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>

On 05/05/2010 09:30 AM, Or Gerlitz wrote:
> iscsi connection object life cycle includes binding and unbinding
> (conn_stop) to/from the iscsi transport connection object. Since
> iscsi connection objects are recycled, on the time the transport
> connection (e.g iser's ib connection) is released it is illegal
> to touch the iscsi connection tied to the transport back-pointer, as
> it may already point to a different transport connection.
>
> Signed-off-by: Or Gerlitz<ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
>
> ---
>   drivers/infiniband/ulp/iser/iser_verbs.c |    2 --
>   1 file changed, 2 deletions(-)
>
> Index: linux-2.6.34-rc6/drivers/infiniband/ulp/iser/iser_verbs.c
> ===================================================================
> --- linux-2.6.34-rc6.orig/drivers/infiniband/ulp/iser/iser_verbs.c
> +++ linux-2.6.34-rc6/drivers/infiniband/ulp/iser/iser_verbs.c
> @@ -346,8 +346,6 @@ static void iser_conn_release(struct ise
>   	/* on EVENT_ADDR_ERROR there's no device yet for this conn */
>   	if (device != NULL)
>   		iser_device_try_release(device);
> -	if (ib_conn->iser_conn)
> -		ib_conn->iser_conn->ib_conn = NULL;
>   	iscsi_destroy_endpoint(ib_conn->ep);
>   }
>

I agree on it being a bug, but do you remember why that was added to 
iscsi_iser_conn_destroy originally? I later moved it to 
iser_conn_release in 
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b40977d95fb3a1898ace6a7d97e4ed1a33a440a4) 
but I think Erez had added that null and some checks for it being null 
for a specific bug.

I am not 100% sure. Look in the git logs to make sure. I will check them 
too when I get some more time.
--
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:[~2010-05-05 17:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 14:29 [PATCH 0/3 for-2.6.35] ib/iser: fix multipathing over iser, reduce fail-over time Or Gerlitz
     [not found] ` <Pine.LNX.4.64.1005051726110.29957-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>
2010-05-05 14:30   ` [PATCH 1/3] ib/iser: add event handler Or Gerlitz
2010-05-05 14:30   ` [PATCH 2/3] ib/iser: remove buggy back-pointer setting Or Gerlitz
     [not found]     ` <Pine.LNX.4.64.1005051730170.29957-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>
2010-05-05 17:50       ` Mike Christie [this message]
     [not found]         ` <4BE1AFF4.30600-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org>
2010-05-05 21:14           ` Or Gerlitz
2010-05-06  8:24           ` Or Gerlitz
     [not found]             ` <4BE27CB1.5000609-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-05-06 17:09               ` Mike Christie
2010-05-05 14:31   ` [PATCH 3/3] ib/iser: enhance disconnection logic for multi-pathing Or Gerlitz
     [not found]     ` <Pine.LNX.4.64.1005051730450.29957-aDiYczhfhVLdX2U7gxhm1tBPR1lH4CV8@public.gmane.org>
2010-05-11 22:12       ` Or Gerlitz
     [not found]         ` <AANLkTin2z7MkpMtDqUwfcGA0RgJ7Nrsn9FSh6pXxWyGF-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-05-12 16:32           ` Roland Dreier
     [not found]             ` <adaocglulmi.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-05-12 20:00               ` Or Gerlitz

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=4BE1AFF4.30600@cs.wisc.edu \
    --to=michaelc-hcno3ddehluvc3sceru5cw@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=rdreier-FYB4Gu1CFyUAvxtiuMwx3w@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