linux-stable-rt/drivers/infiniband/ulp/ipoib
Roland Dreier a77a57a1a2 IPoIB: Fix deadlock on RTNL in ipoib_stop()
Commit c8c2afe3 ("IPoIB: Use rtnl lock/unlock when changing device
flags") added a call to rtnl_lock() in ipoib_mcast_join_task(), which
is run from the ipoib_workqueue.  However, ipoib_stop() (which is run
inside rtnl_lock()) flushes this workqueue, which leads to a deadlock
if the join task is pending.

Fix this by simply not flushing the workqueue from ipoib_stop().  It
turns out that we really don't care about workqueue tasks running
during or after ipoib_stop(), as long as we make sure to flush the
workqueue before unregistering a netdev.

This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1114>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-08-19 15:01:32 -07:00
..
Kconfig IPoIB: Correct help text for INFINIBAND_IPOIB_DEBUG 2008-07-24 20:37:25 -07:00
Makefile
ipoib.h IPoIB: Double default RX/TX ring sizes 2008-07-14 23:48:52 -07:00
ipoib_cm.c IPoIB/cm: Use vmalloc() to allocate rx_rings 2008-08-08 15:51:29 -07:00
ipoib_ethtool.c IPoIB: add LRO support 2008-07-14 23:48:48 -07:00
ipoib_fs.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00
ipoib_ib.c IPoIB: Refresh paths instead of flushing them on SM change events 2008-07-14 23:48:49 -07:00
ipoib_main.c IPoIB: Fix deadlock on RTNL in ipoib_stop() 2008-08-19 15:01:32 -07:00
ipoib_multicast.c IPoIB: Fix deadlock on RTNL in ipoib_stop() 2008-08-19 15:01:32 -07:00
ipoib_verbs.c IPoIB: Get rid of ipoib_mcast_detach() wrapper 2008-07-14 23:48:50 -07:00
ipoib_vlan.c RDMA: Remove subversion $Id tags 2008-07-14 23:48:44 -07:00