]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: hv: Fix race condition on vmbus channel initialization
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 28 May 2010 23:22:44 +0000 (23:22 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Jun 2010 15:18:14 +0000 (08:18 -0700)
commit8b5d6d3bd3e34e4cc67d875c8c88007c1c9aa960
tree2f923d8299574a31799c14bfd9ecc10520ed9b02
parent6c2fd308045ba902fbe9f4408daa7b949fa8f5a1
staging: hv: Fix race condition on vmbus channel initialization

There is a possible race condition when hv_utils starts to load immediately
after hv_vmbus is loading - null pointer error could happen.
This patch added wait/completion to ensure all channels are ready before
vmbus loading completes. So another module won't have any uninitialized channel.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/channel_mgmt.c
drivers/staging/hv/vmbus.h
drivers/staging/hv/vmbus_drv.c