]> git.baikalelectronics.ru Git - kernel.git/commit
netvsc: avoid race with callback
authorstephen hemminger <stephen@networkplumber.org>
Thu, 16 Mar 2017 23:12:37 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 04:39:50 +0000 (21:39 -0700)
commit5cbf30fcc49000aa482f03cb85fe6bddc31c113e
treeae4d4f7d6917a8dc79e039ce6d5747f8da5890a2
parent6e1fba3110d1242555173dbe4d409adea0be0e96
netvsc: avoid race with callback

Change the argument to channel callback from the channel pointer
to the internal data structure containing per-channel info.
This avoids any possible races when callback happens during
initialization and makes IRQ code simpler.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/rndis_filter.c