Thread (3 messages) 3 messages, 2 authors, 2021-02-23

Re: [PATCH] nvmet: don't change model_number on live subsys

From: Christoph Hellwig <hch@lst.de>
Date: 2021-02-18 07:06:02

+	mutex_lock(&subsys->lock);
+	list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) {
+		connected = true;
+		break;
+	}
+	mutex_unlock(&subsys->lock);
This could just use list_empty.  But we'd also need to hold the lock
over the actual change of the model number to avoid a race window.

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help