Thread (5 messages) flat view 5 messages, 4 authors, 2021-03-05

Re: [PATCH] ibmvnic: remove excessive irqsave

From: Sukadev Bhattiprolu <hidden>
Date: 2021-03-05 04:19:43
Also in: lkml, netdev

angkery [angkery@163.com] wrote:
From: Junlin Yang <redacted>

ibmvnic_remove locks multiple spinlocks while disabling interrupts:
spin_lock_irqsave(&adapter->state_lock, flags);
spin_lock_irqsave(&adapter->rwi_lock, flags);

there is no need for the second irqsave,since interrupts are disabled
at that point, so remove the second irqsave:
spin_lock_irqsave(&adapter->state_lock, flags);
spin_lock(&adapter->rwi_lock);

Generated by: ./scripts/coccinelle/locks/flags.cocci
./drivers/net/ethernet/ibm/ibmvnic.c:5413:1-18:
ERROR: nested lock+irqsave that reuses flags from line 5404.
Thanks. Please add

Fixes: 4a41c421f367 ("ibmvnic: serialize access to work queue on remove")
Signed-off-by: Junlin Yang <redacted>
Reviewed-by: Sukadev Bhattiprolu <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help