Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249347
b: refs/heads/master
c: 404aaed
h: refs/heads/master
i:
  249345: d4a0b57
  249343: bd5b9c4
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 4a52610 commit 1048a78
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 360926923b184fddf4e570b7f970b33e4e52af40
refs/heads/master: 404aaed16b31ea34efc5fc58c7b0ba71d7f09077
33 changes: 0 additions & 33 deletions trunk/drivers/staging/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,37 +791,4 @@ int vmbus_request_offers(void)
return ret;
}

/*
* vmbus_release_unattached_channels - Release channels that are
* unattached/unconnected ie (no drivers associated)
*/
void vmbus_release_unattached_channels(void)
{
struct vmbus_channel *channel, *pos;
struct vmbus_channel *start = NULL;
unsigned long flags;

spin_lock_irqsave(&vmbus_connection.channel_lock, flags);

list_for_each_entry_safe(channel, pos, &vmbus_connection.chn_list,
listentry) {
if (channel == start)
break;

if (!channel->device_obj->drv) {
list_del(&channel->listentry);

pr_err("Releasing unattached device object\n");

vmbus_child_device_unregister(channel->device_obj);
free_channel(channel);
} else {
if (!start)
start = channel;
}
}

spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags);
}

/* eof */
2 changes: 0 additions & 2 deletions trunk/drivers/staging/hv/channel_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,4 @@ void vmbus_onmessage(void *context);

int vmbus_request_offers(void);

void vmbus_release_unattached_channels(void);

#endif /* _CHANNEL_MGMT_H_ */

0 comments on commit 1048a78

Please sign in to comment.