[openib-general] Re: userspace event reporting
Michael S. Tsirkin
mst at mellanox.co.il
Tue Jul 12 15:14:49 PDT 2005
Quoting r. Sean Hefty <sean.hefty at intel.com>:
> Subject: RE: userspace event reporting
>
> >Are we talking about multithreaded app?
>
> Correct. The app is trying to get events while needing to destroy a
> cm_id (or other object) at the same time.
>
> >So this is purely userspace issue - cant userspace just take some
> >mutex in get_event and destroy paths?
>
> I believe that this is purely a userspace issue. I can't see why
> using a mutex wouldn't work, but I believe that get_event() currently
> blocks waiting for an event.
>
> Note that get_event() may be reporting events associated with an
> object other than the one being destroyed.
>
> - Sean
>
Maybe, create a special kind of event after the object has been destroyed?
--
MST
More information about the general
mailing list