[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.

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 georgezh...@vmware.com Acked-by: Andy king ack...@vmware.com Acked-by: Dmitry Torokhov d...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 224

[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

[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 georgezh...@vmware.com Signed-off-by: Dmitry Torokhov d...@vmware.com Signed-off-by: Andy King ack...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 224

[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

[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 georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 229 drivers/misc/vmw_vmci/vmci_event.h | 25 2 files changed,

[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

[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 georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 229 drivers/misc/vmw_vmci/vmci_event.h | 25 2 files changed,

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

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

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 count has

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 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(struct kref

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,

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

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(>done); > +} Didn't you just leak

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(>kref,

[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

[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 georgezh...@vmware.com --- drivers/misc/vmw_vmci/vmci_event.c | 371 drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 396

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,

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 leak

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

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, kref); +