Re: [PATCH v7 net-next 14/15] iavf: Add net_shaper_ops support

From
Jakub Kicinski <kuba@kernel.org>
Date
2024-09-10 22:03:39
Also in
intel-wired-lan
Reply to
Paolo Abeni, 2024-09-09
On Tue, 10 Sep 2024 00:10:08 +0200 Paolo Abeni wrote:
quoted hunk ↗ jump to hunk
+	if (adapter->netdev->reg_state == NETREG_REGISTERED) {
+		mutex_lock(&adapter->netdev->lock);
+		devlock = true;
+	}
This leads to a false positive in cocci.

Any concerns about moving the mutex_init() / _destroy() into
alloc_netdev_mqs() / free_netdev()?  I guess one could argue
that narrower scope of the lock being valid may help catching 
errors, but I think we'll instead end up with more checks like
the above sprinkled around than bugs caught?
Thread (23 messages) 23 messages, 4 authors, last reply 2024-09-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help