kernel-hacking-2024-linux-s.../drivers/infiniband/ulp/ipoib
Yossi Etigin e028cc55cc IPoIB: Disable NAPI while CQ is being drained
If NAPI is enabled while IPoIB's CQ is being drained, it creates a
race on priv->ibwc between ipoib_poll() and ipoib_drain_cq(), leading
to memory corruption.

The solution is to enable/disable NAPI in ipoib_ib_dev_{open/stop}()
instead of in ipoib_{open/stop}(), and sync NAPI on the INITIALIZED
flag instead on the ADMIN_UP flag. This way NAPI will be disabled when
ipoib_drain_cq() is called.

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

Signed-off-by: Yossi Etigin <yosefe@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2009-04-20 13:58:08 -07:00
..
ipoib.h
ipoib_cm.c
ipoib_ethtool.c
ipoib_fs.c
ipoib_ib.c IPoIB: Disable NAPI while CQ is being drained 2009-04-20 13:58:08 -07:00
ipoib_main.c IPoIB: Disable NAPI while CQ is being drained 2009-04-20 13:58:08 -07:00
ipoib_multicast.c IPoIB: Do not print error messages for multicast join retries 2009-01-16 13:42:59 -08:00
ipoib_verbs.c
ipoib_vlan.c IPoIB: Avoid free_netdev() BUG when destroying a child interface 2009-03-31 10:22:32 -07:00
Kconfig
Makefile