Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1185155
| From | KY Srinivasan <kys@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown |
| Date | 2015-07-16 02:40 +0200 |
| Message-ID | <pMFnt-7jk-25@gated-at.bofh.it> (permalink) |
| References | <pLKSe-4Ui-35@gated-at.bofh.it> <pMaWm-5cM-27@gated-at.bofh.it> <pMaWm-5cM-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> -----Original Message----- > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com] > Sent: Tuesday, July 14, 2015 9:03 AM > To: Dexuan Cui > Cc: devel@linuxdriverproject.org; KY Srinivasan; Haiyang Zhang; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation > on device shutdown > > Dexuan Cui <decui@microsoft.com> writes: > > >> -----Original Message----- > >> From: Vitaly Kuznetsov > >> Sent: Monday, July 13, 2015 20:19 > >> Subject: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on > device > >> shutdown > >> > >> When a new subchannel offer from host comes during device shutdown > (e.g. > >> when a netvsc/storvsc module is unloadedshortly after it was loaded) a > >> crash can happen as vmbus_process_offer() is not anyhow serialized with > >> vmbus_remove(). > > > > How about vmbus_onoffer_rescind()? > > It's not serialized with vmbus_remove() either, so I think there is an issue > too? > > > > I remember when 'rmmod hv_netvsc', we get a rescind-offer message for > > each subchannel. > > > > True, I think we have a race with rescind messages as well, we just > never saw crashes for some reason. I'll think how we can make the fix > more general. In an earlier email I had outlined how I was planning to address original issue. I have a patch based on the logic I had described - essentially put the burden on the probe call to ensure that the open (including sub-channels) is complete before we return from probe. I will post this shortly. Regards, K. Y -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown Vitaly Kuznetsov <vkuznets@redhat.com> - 2015-07-13 14:20 +0200
Re: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown Vitaly Kuznetsov <vkuznets@redhat.com> - 2015-07-14 18:10 +0200
RE: [PATCH] Drivers: hv: vmbus: prevent new subchannel creation on device shutdown KY Srinivasan <kys@microsoft.com> - 2015-07-16 02:40 +0200
csiph-web