summaryrefslogtreecommitdiff
path: root/drivers/hv/hv_fcopy.c
diff options
context:
space:
mode:
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>2020-04-06 03:15:07 +0300
committerWei Liu <wei.liu@kernel.org>2020-04-23 16:17:11 +0300
commitac5047671758ad4be9f93898247b3a8b6dfde4c7 (patch)
tree587b9d5c51dae373418d131019985a46f76ee172 /drivers/hv/hv_fcopy.c
parent8b6a877c060ed6b86878fe66c7c6493a6054cf23 (diff)
downloadlinux-ac5047671758ad4be9f93898247b3a8b6dfde4c7.tar.xz
hv_netvsc: Disable NAPI before closing the VMBus channel
vmbus_chan_sched() might call the netvsc driver callback function that ends up scheduling NAPI work. This "work" can access the channel ring buffer, so we must ensure that any such work is completed and that the ring buffer is no longer being accessed before freeing the ring buffer data structure in the channel closure path. To this end, disable NAPI before calling vmbus_close() in netvsc_device_remove(). Suggested-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: <netdev@vger.kernel.org> Link: https://lore.kernel.org/r/20200406001514.19876-5-parri.andrea@gmail.com Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/hv_fcopy.c')
0 files changed, 0 insertions, 0 deletions