linux/drivers/infiniband/ulp/ipoib
Doug Ledford e135106fac IB/ipoib: factor out ah flushing
Create a an ipoib_flush_ah and ipoib_stop_ah routines to use at
appropriate times to flush out all remaining ah entries before we shut
the device down.

Because neighbors and mcast entries can each have a reference on any
given ah, we must make sure to free all of those first before our ah
will actually have a 0 refcount and be able to be reaped.

This factoring is needed in preparation for having per-device work
queues.  The original per-device workqueue code resulted in the following
error message:

<ibdev>: ib_dealloc_pd failed

That error was tracked down to this issue.  With the changes to which
workqueues were flushed when, there were no flushes of the per device
workqueue after the last ah's were freed, resulting in an attempt to
dealloc the pd with outstanding resources still allocated.  This code
puts the explicit flushes in the needed places to avoid that problem.

Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-04-15 16:06:17 -04:00
..
ipoib_cm.c Revert "IPoIB: Use dedicated workqueues per interface" 2015-01-30 15:38:55 -08:00
ipoib_ethtool.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
ipoib_fs.c IPoIB: Remove unnecessary test for NULL before debugfs_remove() 2014-08-12 21:59:54 -07:00
ipoib_ib.c IB/ipoib: factor out ah flushing 2015-04-15 16:06:17 -04:00
ipoib_main.c infiniband/ipoib: implement ndo_get_iflink 2015-04-02 14:05:01 -04:00
ipoib_multicast.c Revert "IPoIB: Consolidate rtnl_lock tasks in workqueue" 2015-01-30 15:39:36 -08:00
ipoib_netlink.c infiniband: make sure the src net is infiniband when create new link 2014-01-03 20:38:56 -05:00
ipoib_verbs.c Revert "IPoIB: Use dedicated workqueues per interface" 2015-01-30 15:38:55 -08:00
ipoib_vlan.c infiniband/ipoib: implement ndo_get_iflink 2015-04-02 14:05:01 -04:00
ipoib.h Revert "IPoIB: fix MCAST_FLAG_BUSY usage" 2015-01-30 15:39:20 -08:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile IB/ipoib: Add rtnl_link_ops support 2012-09-20 16:49:17 -04:00