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.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -773,6 +773,9 @@ struct vmbus_channel { · 772 unmodified lines | ||
| 773 | 773 | void (*onchannel_callback)(void *context); |
| 774 | 774 | void *channel_callback_context; |
| 775 | 775 | |
| 776 | + void (*change_target_cpu_callback)(struct vmbus_channel *channel, | |
| 777 | + u32 old, u32 new); | |
| 778 | + | |
| 776 | 779 | /* |
| 777 | 780 | * Synchronize channel scheduling and channel removal; see the inline |
| 778 | 781 | * comments in vmbus_chan_sched() and vmbus_reset_channel_cb(). |