[PATCH 05/12] VMCI: event handling implementation.

2013-01-08 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang Acked-by: Andy king Acked-by: Dmitry Torokhov --- drivers/misc/vmw_vmci/vmci_event.c | 224 drivers/misc/vmw_vmci/vmci_event.h | 25 +

[PATCH 05/12] VMCI: event handling implementation.

2012-11-21 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang Signed-off-by: Dmitry Torokhov Signed-off-by: Andy King --- drivers/misc/vmw_vmci/vmci_event.c | 224 drivers/misc/vmw_vmci/vmci_event

[PATCH 05/12] VMCI: event handling implementation.

2012-11-07 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 229 drivers/misc/vmw_vmci/vmci_event.h | 25 2 files changed, 254 insertions(+), 0 dele

[PATCH 05/12] VMCI: event handling implementation.

2012-11-01 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 229 drivers/misc/vmw_vmci/vmci_event.h | 25 2 files changed, 254 insertions(+), 0 dele

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Dmitry Torokhov
On Tuesday, October 30, 2012 08:50:41 AM Greg KH wrote: > On Mon, Oct 29, 2012 at 10:01:52PM -0700, Dmitry Torokhov wrote: > > On Mon, Oct 29, 2012 at 07:26:05PM -0700, Greg KH wrote: > > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > > +static void event_signal_destroy(struc

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 10:01:52PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:26:05PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > +static void event_signal_destroy(struct kref *kref) > > > +{ > > > + struct vmci_subscription *entry =

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-30 Thread Greg KH
On Mon, Oct 29, 2012 at 09:58:21PM -0700, Dmitry Torokhov wrote: > On Mon, Oct 29, 2012 at 07:24:46PM -0700, Greg KH wrote: > > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > > +/* > > > + * Releases the given VMCISubscription. > > > + * Fires the destroy event if the reference c

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread Dmitry Torokhov
On Mon, Oct 29, 2012 at 07:26:05PM -0700, Greg KH wrote: > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > +static void event_signal_destroy(struct kref *kref) > > +{ > > + struct vmci_subscription *entry = > > + container_of(kref, struct vmci_subscription, kre

Re: [Pv-drivers] [PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread Dmitry Torokhov
On Mon, Oct 29, 2012 at 07:24:46PM -0700, Greg KH wrote: > On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > > +/* > > + * Releases the given VMCISubscription. > > + * Fires the destroy event if the reference count has gone to zero. > > + */ > > +static void event_release(struct vmci_

Re: [PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread Greg KH
On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > +static void event_signal_destroy(struct kref *kref) > +{ > + struct vmci_subscription *entry = > + container_of(kref, struct vmci_subscription, kref); > + > + complete(&entry->done); > +} Didn't you just l

Re: [PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread Greg KH
On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote: > +/* > + * Releases the given VMCISubscription. > + * Fires the destroy event if the reference count has gone to zero. > + */ > +static void event_release(struct vmci_subscription *entry) > +{ > + kref_put(&entry->kref, event_signal

[PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 371 drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 396 insertions(+), 0 delet