From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matan Barak Subject: Re: [PATCH v3 for-next 02/33] IB/core: Add kref to IB devices Date: Tue, 28 Apr 2015 19:17:27 +0300 Message-ID: <553FB297.20807@mellanox.com> References: <1427318422-12004-1-git-send-email-somnath.kotur@emulex.com> <9f65de5e-ed5f-48d2-bff2-03ffbe4f4876@CMEXHTCAS2.ad.emulex.com> <553DF294.4070507@mellanox.com> <20150427162256.GA24316@obsidianresearch.com> <553F4588.80301@mellanox.com> <20150428160315.GA5497@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150428160315.GA5497-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jason Gunthorpe Cc: Or Gerlitz , Somnath Kotur , Roland Dreier , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On 4/28/2015 7:03 PM, Jason Gunthorpe wrote: > On Tue, Apr 28, 2015 at 11:32:08AM +0300, Matan Barak wrote: > >> This was already asked by Haggai Eran awhile ago and was answered. >> Anyway, in ib_unregister_device we delete all client's related data. >> We would like to ensure that all references were released before this >> data is being deleted. Meaning, we would like to ensure the device >> is still functioning but isn't referenced rather than just to avoid >> freeing the IB device's memory. > > A kref is the wrong datastructure for that purpose. What is the right data structure in your opinion? > > Jason > Matan -- 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