|
@@ -936,14 +936,10 @@ static void vmbus_onoffer_rescind(struct vmbus_channel_message_header *hdr)
|
|
|
|
|
|
void vmbus_hvsock_device_unregister(struct vmbus_channel *channel)
|
|
void vmbus_hvsock_device_unregister(struct vmbus_channel *channel)
|
|
{
|
|
{
|
|
- mutex_lock(&vmbus_connection.channel_mutex);
|
|
|
|
-
|
|
|
|
BUG_ON(!is_hvsock_channel(channel));
|
|
BUG_ON(!is_hvsock_channel(channel));
|
|
|
|
|
|
channel->rescind = true;
|
|
channel->rescind = true;
|
|
vmbus_device_unregister(channel->device_obj);
|
|
vmbus_device_unregister(channel->device_obj);
|
|
-
|
|
|
|
- mutex_unlock(&vmbus_connection.channel_mutex);
|
|
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(vmbus_hvsock_device_unregister);
|
|
EXPORT_SYMBOL_GPL(vmbus_hvsock_device_unregister);
|
|
|
|
|