RE: [openib-general] RE: userspace event reporting

2005-07-20 Thread Fab Tillier
> From: Libor Michalek [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 20, 2005 5:55 PM > > On Wed, Jul 20, 2005 at 05:17:09PM -0700, Fab Tillier wrote: > > > From: Libor Michalek [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, July 20, 2005 5:02 PM > > > > > > My question is do we really wan

Re: [openib-general] RE: userspace event reporting

2005-07-20 Thread Libor Michalek
On Wed, Jul 20, 2005 at 05:17:09PM -0700, Fab Tillier wrote: > > From: Libor Michalek [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 20, 2005 5:02 PM > > > > My question is do we really want this, since an application will likely > > have yet another table containing the app specific connec

RE: [openib-general] RE: userspace event reporting

2005-07-20 Thread Fab Tillier
> From: Libor Michalek [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 20, 2005 5:02 PM > > My question is do we really want this, since an application will likely > have yet another table containing the app specific connection structure. > How that table is locked and managed will differ base

Re: [openib-general] RE: userspace event reporting

2005-07-20 Thread Libor Michalek
On Tue, Jul 12, 2005 at 10:20:33PM -0700, Fab Tillier wrote: > > From: Michael S. Tsirkin [mailto:[EMAIL PROTECTED] > > Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > > > > > > 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_

Re: [openib-general] RE: userspace event reporting

2005-07-20 Thread Libor Michalek
On Tue, Jul 12, 2005 at 01:45:43PM -0700, Sean Hefty wrote: > >> one way to handle this is to have destruction flush events first, then > >> perform the actual destroy... > > > >Right, what I was trying to say in the other thread was: walk the event > >list and kill events for the id that is destro

[openib-general] Re: userspace event reporting

2005-07-20 Thread Libor Michalek
On Tue, Jul 12, 2005 at 11:53:06AM -0700, Sean Hefty wrote: > This fell out of the uCM connection ID discussion... > > There's an issue reporting events to userspace clients for an object that > a user may have destroyed. The problem exists with user verbs, but is > much more likely to be seen by

[openib-general] RE: userspace event reporting

2005-07-13 Thread Sean Hefty
>> > From: Michael S. Tsirkin [mailto:[EMAIL PROTECTED] >> > Sent: Tuesday, July 12, 2005 3:15 PM >> > >> > Quoting r. Sean Hefty <[EMAIL PROTECTED]>: >> > > >> > > 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() c

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Fab Tillier <[EMAIL PROTECTED]>: > Subject: RE: userspace event reporting > > > From: Michael S. Tsirkin [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 12, 2005 3:15 PM > > > > Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > > > > > > I believe that this is purely a userspace issue. I

[openib-general] RE: userspace event reporting

2005-07-12 Thread Fab Tillier
> From: Michael S. Tsirkin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 12, 2005 3:15 PM > > Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > > > > 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

Re: [openib-general] RE: userspace event reporting

2005-07-12 Thread Arlin Davis
Sean Hefty wrote: 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 be

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > 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 user

[openib-general] RE: userspace event reporting

2005-07-12 Thread Sean Hefty
>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 usersp

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > Subject: RE: userspace event reporting > > >> one way to handle this is to have destruction flush events first, then > >> perform the actual destroy... > > > >Right, what I was trying to say in the other thread was: walk the event > >list and kill event

[openib-general] RE: userspace event reporting

2005-07-12 Thread Sean Hefty
>> one way to handle this is to have destruction flush events first, then >> perform the actual destroy... > >Right, what I was trying to say in the other thread was: walk the event >list and kill events for the id that is destroyed. > >Does this make more sense? I think this is needed, just not s

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > one way to handle this is to have destruction flush events first, then > perform the actual destroy... Right, what I was trying to say in the other thread was: walk the event list and kill events for the id that is destroyed. Does this make more sense?

[openib-general] RE: userspace event reporting

2005-07-12 Thread Sean Hefty
>For cq, there can only be one outstanding event of each kind at a time. >So you can just keep a mask of events that happened, avoiding any mallocs. >Is that not the same for cm? For a listening cm_id, there could be multiple connection requests associated with the listen in process at the same ti

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > >I think the proper solution is to record the event in the object itself. > >For example, on cq event set bit "event received". > >Then after object goes away events go away without flags, states and > >ugliness. > > What we're suggesting is that the "e

[openib-general] RE: userspace event reporting

2005-07-12 Thread Sean Hefty
>> This fell out of the uCM connection ID discussion... >> >> There's an issue reporting events to userspace clients for an object >> that a user may have destroyed. The problem exists with user verbs, >> but is much more likely to be seen by a userspace CM client. To avoid >> reporting events fo

[openib-general] Re: userspace event reporting

2005-07-12 Thread Michael S. Tsirkin
Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > Subject: userspace event reporting > > This fell out of the uCM connection ID discussion... > > There's an issue reporting events to userspace clients for an object > that a user may have destroyed. The problem exists with user verbs, > but is much mo