History

scsi: storvsc: Re-init stor_chns when a channel interrupt is re-assigned

For each storvsc_device, storvsc keeps track of the channel target CPUs associated to the device (alloced_cpus) and it uses this information to fill a "cache" (stor_chns) mapping CPU->channel according to a certain heuristic. Update the alloced_cpus mask and the stor_chns array when a channel of the storvsc device is re-assigned to a different CPU.

Andrea Parri (Microsoft) committed 6 years ago

Commit 7769e181 parent 75278103 files · +95 −8Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/hyperv.h+3−0
@@ -773,6 +773,9 @@ struct vmbus_channel { · 772 unmodified lines
773773 void (*onchannel_callback)(void *context);
774774 void *channel_callback_context;
775775
776+ void (*change_target_cpu_callback)(struct vmbus_channel *channel,
777+ u32 old, u32 new);
778+
776779 /*
777780 * Synchronize channel scheduling and channel removal; see the inline
778781 * comments in vmbus_chan_sched() and vmbus_reset_channel_cb().