Re: [openib-general] hotplug support in mthca

2006-08-03 Thread Roland Dreier
OK, I applied this for now. Let's try to revisit the revoke method later though. ___ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo

Re: [openib-general] hotplug support in mthca

2006-08-02 Thread Michael S. Tsirkin
Quoting r. Michael S. Tsirkin <[EMAIL PROTECTED]>: > Subject: Re: hotplug support in mthca > > Quoting r. Roland Dreier <[EMAIL PROTECTED]>: > > Subject: Re: hotplug support in mthca > > > > Michael> How about fixing it by blocking remove_one in uverbs > > Michael> until all contexts are

Re: [openib-general] hotplug support in mthca

2006-08-01 Thread Michael S. Tsirkin
Quoting r. Roland Dreier <[EMAIL PROTECTED]>: > Subject: Re: hotplug support in mthca > > Michael> How about fixing it by blocking remove_one in uverbs > Michael> until all contexts are closed and device refcount drops > Michael> to 0? > > That seems kind of horrible, because there's

Re: [openib-general] hotplug support in mthca

2006-08-01 Thread Roland Dreier
Michael> How about fixing it by blocking remove_one in uverbs Michael> until all contexts are closed and device refcount drops Michael> to 0? That seems kind of horrible, because there's no guarantee that all the contexts will ever be freed. I think the real answer is to revoke all th

Re: [openib-general] hotplug support in mthca

2006-08-01 Thread Jack Morgenstein
On Tuesday 01 August 2006 17:22, Michael S. Tsirkin wrote: > Quoting r. Roland Dreier <[EMAIL PROTECTED]>: > > 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 t

Re: [openib-general] hotplug support in mthca

2006-08-01 Thread Michael S. Tsirkin
Quoting r. Roland Dreier <[EMAIL PROTECTED]>: > 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 blo

Re: [openib-general] hotplug support in mthca

2006-08-01 Thread Roland Dreier
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. - R. ___ openib-general mailing list openib-general@openib.org http://openib.or

[openib-general] hotplug support in mthca

2006-08-01 Thread Michael S. Tsirkin
Roland, what happends today if an mthca device is removed while a userspace applcation still keeps a reference to it? I understand uverbs remove_one will get called, but I don't see what prevents it from exiting while userspace still has open resources. -- MST __