Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1460648
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev |
| Date | 2016-08-11 18:20 +0200 |
| Message-ID | <s50S5-66i-5@gated-at.bofh.it> (permalink) |
| References | <s4VSv-2Iy-13@gated-at.bofh.it> <s4W26-31e-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: netdev@vger.kernel.org > Cc: devel@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang <haiyangz@microsoft.com>; KY Srinivasan <kys@microsoft.com> > Subject: [PATCH net 3/4] hv_netvsc: protect module refcount by checking > net_device_ctx->vf_netdev > > We're not guaranteed to see NETDEV_REGISTER/NETDEV_UNREGISTER > notifications > only once per VF but we increase/decrease module refcount unconditionally. > Check vf_netdev to make sure we don't take/release it twice. We presume > that only one VF per netvsc device may exist. > > Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH net 0/4] hv_netvsc: fixes for VF removal path Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-08-11 13:00 +0200
[PATCH net 4/4] hv_netvsc: avoid deadlocks between rtnl lock and netvsc_inject_disable() Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-08-11 13:10 +0200
[PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-08-11 13:10 +0200
RE: [PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev Haiyang Zhang <haiyangz@microsoft.com> - 2016-08-11 18:20 +0200
csiph-web