summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-03-02 22:49:06 +0100
committerDavid S. Miller <davem@davemloft.net>2018-03-05 04:18:20 +0100
commit68633edaef655ce94e51088ecef5dd4e1d2f6f34 (patch)
tree2ce8a820f26389fd706dda53f1401d89559207f4 /drivers/net
parenthv_netvsc: fix race in napi poll when rescheduling (diff)
downloadlinux-68633edaef655ce94e51088ecef5dd4e1d2f6f34.tar.xz
linux-68633edaef655ce94e51088ecef5dd4e1d2f6f34.zip
hv_netvsc: use napi_schedule_irqoff
Since the netvsc_channel_cb is already called in interrupt context from vmbus, there is no need to do irqsave/restore. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hyperv/netvsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 4237cedc4f08..0265d703eb03 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -1233,7 +1233,7 @@ void netvsc_channel_cb(void *context)
/* disable interupts from host */
hv_begin_read(rbi);
- __napi_schedule(&nvchan->napi);
+ __napi_schedule_irqoff(&nvchan->napi);
}
}