Thread (28 messages) 28 messages, 6 authors, 2025-09-02

Re: [PATCH v5 01/14] net: ionic: Create an auxiliary device for rdma driver

From: Markus Elfring <hidden>
Date: 2025-08-16 09:26:02
Also in: linux-doc, linux-rdma, lkml

quoted hunk ↗ jump to hunk
+++ b/drivers/net/ethernet/pensando/ionic/ionic_aux.c
@@ -0,0 +1,80 @@
+void ionic_auxbus_unregister(struct ionic_lif *lif)
+{
+	mutex_lock(&lif->adev_lock);
+	if (!lif->ionic_adev)
+out:
+	mutex_unlock(&lif->adev_lock);
+}
…

Under which circumstances would you become interested to apply a call
like “scoped_guard(mutex, &lif->adev_lock)”?
https://elixir.bootlin.com/linux/v6.16/source/include/linux/mutex.h#L225

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help