Thread (39 messages) 39 messages, 3 authors, 2012-10-30

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

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2012-10-30 02:23:53
Also in: lkml

On Mon, Oct 29, 2012 at 06:04:27PM -0700, George Zhang wrote:
quoted hunk ↗ jump to hunk
+/*
+ * 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_destroy);
+}
Same question as before with the kref_put() call, what is handling the
locking here?  It looks like a race to me.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help