[openib-general] RDMA Generic Connection Management
Grant Grundler
iod00d at hp.com
Fri Sep 2 22:42:38 PDT 2005
On Mon, Aug 29, 2005 at 01:53:49PM -0700, Roland Dreier wrote:
> Sean> To focus on something a little different... do we want an
> Sean> API that returns a pointer to a device structure?
> Sean> Specifically, how does this affect device removal?
>
> Hey, that's a really good point. We should make sure that our API
> makes it easy to handle device hotplug.
>
> One solution is to start reference counting device references, but
> that inevitably leads to bugs in ULPs -- protocol authors won't get it
> right unless we make it really easy. And I don't see how to make the
> reference counting trivial.
>
> Anyone have a better idea?
Maybe let the kernel return ENODEV (or something equivalent) if the
hotplug occurs before the connection has opened.
Caller could fail (un-)gracefully or try again with the hope it
would get a working device on the next try.
grant
More information about the general
mailing list