[openib-general] hotplug support in mthca

Jack Morgenstein jackm at mellanox.co.il
Tue Aug 1 08:06:17 PDT 2006


On Tuesday 01 August 2006 17:22, Michael S. Tsirkin wrote:
> Quoting r. Roland Dreier <rdreier at cisco.com>:
> > Subject: Re: hotplug support in mthca
> >
> >     Michael> Roland, what happends today if an mthca device is removed
> >     Michael> while a userspace applcation still keeps a reference to
> >     Michael> it?
> >
> > Something bad.
>
> How about fixing it by blocking remove_one in uverbs until all contexts
> are closed and device refcount drops to 0?

I've got a patch ready which does exactly that.  I'm currently verifying that 
it works properly (e.g., what if simultaneously the administrator tries to 
unload the module, etc.).

We can send it to you tomorrow.

- Jack




More information about the general mailing list