aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/include/asm/assembler.h
diff options
context:
space:
mode:
authorYossi Etigin <[email protected]>2009-04-20 20:58:08 +0000
committerRoland Dreier <[email protected]>2009-04-20 20:58:08 +0000
commite028cc55cc5c90a1c57eefe560a0cbb4df1fed14 (patch)
treeb1ef203c107a4589536a089737ae550e0b18451b /arch/m32r/include/asm/assembler.h
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/raf... (diff)
downloadkernel-e028cc55cc5c90a1c57eefe560a0cbb4df1fed14.tar.gz
kernel-e028cc55cc5c90a1c57eefe560a0cbb4df1fed14.zip
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 <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'arch/m32r/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions