linux_dsm_epyc7002/drivers/infiniband/ulp
Sebastian Andrzej Siewior 112f5c8199 IB/ipoib: replace local_irq_disable() with proper locking
In ipoib_mcast_restart_task() the netif_addr_lock() is invoked prior
local_irq_save(). netif_addr_lock() should not be invoked in interrupt disabled
section, only in BH disabled sections.
The priv->lock is always acquired with disabled interrupts. The only place
where netif_addr_lock() and priv->lock nest ist ipoib_mcast_restart_task().

Drop the local_irq_save() and acquire priv->lock with spin_lock_irq() inside
the netif_addr locked section. It's safe to do so because the caller is either
a worker function or __ipoib_ib_dev_flush() which are both calling with
interrupts enabled (and since BH is enabled here, too so
netif_addr_lock_bh() needs to be used).

Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-05-16 21:42:06 -06:00
..
ipoib IB/ipoib: replace local_irq_disable() with proper locking 2018-05-16 21:42:06 -06:00
iser vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
isert Linux 4.15 2018-01-30 09:30:00 -07:00
opa_vnic infiniband: fix ulp/opa_vnic/opa_vnic_vema.c kernel-doc notation 2018-01-10 22:00:34 -07:00
srp ib_srp: depend on INFINIBAND_ADDR_TRANS 2018-04-27 11:15:44 -04:00
srpt ib_srpt: depend on INFINIBAND_ADDR_TRANS 2018-04-27 11:15:43 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00