Re: [PATCH rdma-rc 1/2] RDMA/restrack: Add ability to create non-traceable restrack objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 20, 2018 at 07:19:28PM +0000, Parav Pandit wrote:

> rdma_restrack_clean() call from ib_unregister_device() is not correct.
> rdma_restrack_init() is called in ib_alloc_device().
> The correct cleanup routine of alloc_device() is ib_dealloc_device().
> Therefore rdma_restrack_clean() should be done there.
> Ib_unregister_device() is not the right place regardless of what is done in this patch.

Not really.. It is a serious error for IB objects to still exist once
the client remove callbacks have completed, after that point the
driver is gone and the objects won't work right.

So it is reasonable to place the assertion that all objects are
deleted where it is..

If it did more stuff then maybe something would be needed in
dealloc_device, but as is is fine, if not strangely named.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux