svn commit: r357428 - stable/11/sys/ofed/drivers/infiniband/ulp/ipoib
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Feb 3 10:46:29 UTC 2020
Author: hselasky
Date: Mon Feb 3 10:46:29 2020
New Revision: 357428
URL: https://svnweb.freebsd.org/changeset/base/357428
Log:
MFC r356633:
Make sure the VNET is properly set when reaping mbufs in ipoib.
Else the following panic may happen:
panic()
icmp_error()
ipoib_cm_mb_reap()
linux_work_fn()
taskqueue_run_locked()
taskqueue_thread_loop()
fork_exit()
fork_trampoline()
Submitted by: Andreas Kempe <kempe at lysator.liu.se>
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Mon Feb 3 10:45:09 2020 (r357427)
+++ stable/11/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c Mon Feb 3 10:46:29 2020 (r357428)
@@ -1263,6 +1263,8 @@ static void ipoib_cm_mb_reap(struct work_struct *work)
spin_lock_irqsave(&priv->lock, flags);
+ CURVNET_SET_QUIET(priv->dev->if_vnet);
+
for (;;) {
IF_DEQUEUE(&priv->cm.mb_queue, mb);
if (mb == NULL)
@@ -1288,6 +1290,8 @@ static void ipoib_cm_mb_reap(struct work_struct *work)
spin_lock_irqsave(&priv->lock, flags);
}
+
+ CURVNET_RESTORE();
spin_unlock_irqrestore(&priv->lock, flags);
}
More information about the svn-src-stable-11
mailing list