Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363101
b: refs/heads/master
c: c870597
h: refs/heads/master
i:
  363099: 76663eb
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent 18f29e7 commit 3e33a85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cac8cd4d146b60a7c70d778b5be928281b3b551
refs/heads/master: c87059793dd02390b504b0292bdb024ffd68b822
11 changes: 11 additions & 0 deletions trunk/drivers/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,19 @@ static void vmbus_process_rescind_offer(struct work_struct *work)
struct vmbus_channel *channel = container_of(work,
struct vmbus_channel,
work);
unsigned long flags;
struct vmbus_channel_relid_released msg;

vmbus_device_unregister(channel->device_obj);
memset(&msg, 0, sizeof(struct vmbus_channel_relid_released));
msg.child_relid = channel->offermsg.child_relid;
msg.header.msgtype = CHANNELMSG_RELID_RELEASED;
vmbus_post_msg(&msg, sizeof(struct vmbus_channel_relid_released));

spin_lock_irqsave(&vmbus_connection.channel_lock, flags);
list_del(&channel->listentry);
spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags);
free_channel(channel);
}

void vmbus_free_channels(void)
Expand Down

0 comments on commit 3e33a85

Please sign in to comment.