Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1603663 > unrolled thread

Re: [PATCH] vmbus: remove hv_event_tasklet_disable/enable

Started byStephen Hemminger <stephen@networkplumber.org>
First post2017-03-18 00:50 +0100
Last post2017-03-18 00:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] vmbus: remove hv_event_tasklet_disable/enable Stephen Hemminger <stephen@networkplumber.org> - 2017-03-18 00:50 +0100

#1603663 — Re: [PATCH] vmbus: remove hv_event_tasklet_disable/enable

FromStephen Hemminger <stephen@networkplumber.org>
Date2017-03-18 00:50 +0100
SubjectRe: [PATCH] vmbus: remove hv_event_tasklet_disable/enable
Message-ID<tm9N7-5Uu-3@gated-at.bofh.it>
On Thu, 2 Mar 2017 12:32:55 +0000
Dexuan Cui <decui@microsoft.com> wrote:

> With the recent introduction of per-channel tasklet, we need to update
> the way we handle the 3 concurrency issues:
> 
> 1. hv_process_channel_removal -> percpu_channel_deq vs.
>    vmbus_chan_sched -> list_for_each_entry(..., percpu_list);
> 
> 2. vmbus_process_offer -> percpu_channel_enq/deq vs. vmbus_chan_sched.
> 
> 3. vmbus_close_internal vs. the per-channel tasklet vmbus_on_event;
> 
> The first 2 issues can be handled by Stephen's recent patch
> "vmbus: use rcu for per-cpu channel list", and the third issue
> can be handled by calling tasklet_disable in vmbus_close_internal here.
> 
> We don't need the original hv_event_tasklet_disable/enable since we
> now use per-channel tasklet instead of the previous per-CPU tasklet,
> and actually we must remove them due to the side effect now:
> vmbus_process_offer -> hv_event_tasklet_enable -> tasklet_schedule will
> start the per-channel callback prematurely, cauing NULL dereferencing
> (the channel may haven't been properly configured to run the callback yet).
> 
> Fixes: 631e63a9f346 ("vmbus: change to per channel tasklet")
> 
> Signed-off-by: Dexuan Cui <decui@microsoft.com>
> Cc: "K. Y. Srinivasan" <kys@microsoft.com>
> Cc: Haiyang Zhang <haiyangz@microsoft.com>
> Cc: Stephen Hemminger <sthemmin@microsoft.com>

It also fixes a number of missed interrupts causing stuck tasks on boot.
Please put it in 4.11

Reviewed-by: Stephen Hemminger <sthemmin@microsoft.com>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web