Thread (12 messages) 12 messages, 5 authors, 2023-07-20

Re: [PATCH net-next v2 3/3] mctp i3c: MCTP I3C driver

From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-07-19 01:54:44
Also in: linux-devicetree, linux-i3c

On Mon, 17 Jul 2023 12:06:38 +0800 Matt Johnston wrote:
+	dev_net_set(ndev, current->nsproxy->net_ns);
This is a bit odd, we may have missed similar code in earlier mctp
drivers. Are you actually making use of auto-assigning netns?
+	mbus->tx_thread = kthread_create(mctp_i3c_tx_thread, mbus,
+					 "%s/tx", ndev->name);
+	if (IS_ERR(mbus->tx_thread)) {
+		dev_warn(&ndev->dev, "Error creating thread: %pe\n",
+			mbus->tx_thread);
+		rc = PTR_ERR(mbus->tx_thread);
+		mbus->tx_thread = NULL;
+		goto err;
+	}
+	wake_up_process(mbus->tx_thread);
kthread_run()
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help