Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1530194
| From | Vitaly Kuznetsov <vkuznets@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/7] hv: check all present cpus in vmbus_wait_for_unload() |
| Date | 2016-11-25 14:00 +0100 |
| Message-ID | <sHogG-FW-1@gated-at.bofh.it> (permalink) |
| References | <sHogG-FW-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
It should never happen, but let's get prepared to receiving a confirmation
for VMBus unload on an offlined CPU. As we allocate all structures for all
present CPUs now it's safe.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
drivers/hv/channel_mgmt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index 1bc1d479..5011c95 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -674,7 +674,7 @@ static void vmbus_wait_for_unload(void)
if (completion_done(&vmbus_connection.unload_event))
break;
- for_each_online_cpu(cpu) {
+ for_each_present_cpu(cpu) {
page_addr = hv_context.synic_message_page[cpu];
msg = (struct hv_message *)page_addr +
VMBUS_MESSAGE_SINT;
@@ -700,7 +700,7 @@ static void vmbus_wait_for_unload(void)
* maybe-pending messages on all CPUs to be able to receive new
* messages after we reconnect.
*/
- for_each_online_cpu(cpu) {
+ for_each_present_cpu(cpu) {
page_addr = hv_context.synic_message_page[cpu];
msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT;
msg->header.message_type = HVMSG_NONE;
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 5/7] hv: check all present cpus in vmbus_wait_for_unload() Vitaly Kuznetsov <vkuznets@redhat.com> - 2016-11-25 14:00 +0100
csiph-web