public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Bob Pearson <rpearsonhpe@gmail.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: Leon Romanovsky <leon@kernel.org>,
	Zhu Yanjun <zyjzyj2000@gmail.com>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: Bad behavior by rdma-core ?
Date: Thu, 14 Oct 2021 15:08:01 -0500	[thread overview]
Message-ID: <d1833db1-541e-1cfd-27fd-9a83df098000@gmail.com> (raw)
In-Reply-To: <20211014183235.GX2744544@nvidia.com>

On 10/14/21 1:32 PM, Jason Gunthorpe wrote:
> On Thu, Oct 14, 2021 at 11:14:57AM -0500, Bob Pearson wrote:
> 
>> But ib_uverbs_destroy_ah does *not* call rdma_uverbs_destroy_ah() it just
>> deletes the object.
> 
> ib_uverbs_destroy_ah
>  uobj_perform_destroy
>   __uobj_perform_destroy
>    __uobj_get_destroy
>     uobj_destroy
>      uverbs_destroy_uobject:
> 
>     	} else if (uobj->object) {
> 		ret = uobj->uapi_object->type_class->destroy_hw(uobj, reason,
> 								attrs);
> 
> Which calls 
> 
> destroy_hw_idr_uobject
>   	int ret = idr_type->destroy_object(uobj, why, attrs);
> 
> Which links to this:
> 
> DECLARE_UVERBS_NAMED_OBJECT(UVERBS_OBJECT_AH,
> 			    UVERBS_TYPE_ALLOC_IDR(uverbs_free_ah),
> 			    &UVERBS_METHOD(UVERBS_METHOD_AH_DESTROY));
> 
> And thus calls
> 
> static int uverbs_free_ah(struct ib_uobject *uobject,
> 			  enum rdma_remove_reason why,
> 			  struct uverbs_attr_bundle *attrs)
> {
> 	return rdma_destroy_ah_user((struct ib_ah *)uobject->object,
> 				    RDMA_DESTROY_AH_SLEEPABLE,
> 				    &attrs->driver_udata);
> }
> 
> So, look along that path and find out where it goes wrong?
> 
> Jason
> 
Thanks

I had more or less figured that out. I looked at other objects and saw a similar pattern.
I think I've traced the problem back to myself.

Bob

      reply	other threads:[~2021-10-14 20:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 14:57 Bad behavior by rdma-core ? Bob Pearson
2021-10-14 16:14 ` Bob Pearson
2021-10-14 16:43   ` Bob Pearson
2021-10-14 18:32   ` Jason Gunthorpe
2021-10-14 20:08     ` Bob Pearson [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=d1833db1-541e-1cfd-27fd-9a83df098000@gmail.com \
    --to=rpearsonhpe@gmail.com \
    --cc=jgg@nvidia.com \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=zyjzyj2000@gmail.com \
    /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