Thread (50 messages) 50 messages, 6 authors, 2017-10-23

Re: [PATCH 10/17] nvme: switch controller refcounting to use struct device

From: Sagi Grimberg <sagi@grimberg.me>
Date: 2017-10-19 07:17:01
Also in: linux-nvme

-	if (!kref_get_unless_zero(&ctrl->ctrl.kref))
-		return -EBUSY;
+	nvme_get_ctrl(&ctrl->ctrl);
Given that we take this reference before we are protected with
the state change I think this should still be get_unless_zero.

Maybe we can introduce get_device_unless_zero() for this?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help