OpenCloudOS-Kernel/drivers/hv
Vitaly Kuznetsov e9c18ae6eb Drivers: hv: util: move waiting for release to hv_utils_transport itself
Waiting for release_event in all three drivers introduced issues on release
as on_reset() hook is not always called. E.g. if the device was never
opened we will never get the completion.

Move the waiting code to hvutil_transport_destroy() and make sure it is
only called when the device is open. hvt->lock serialization should
guarantee the absence of races.

Fixes: 5a66fecbf6 ("Drivers: hv: util: kvp: Fix a rescind processing issue")
Fixes: 20951c7535 ("Drivers: hv: util: Fcopy: Fix a rescind processing issue")
Fixes: d77044d142 ("Drivers: hv: util: Backup: Fix a rescind processing issue")

Reported-by: Dexuan Cui <decui@microsoft.com>
Tested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-16 16:42:00 +09:00
..
Kconfig x86: Make Linux guest support optional 2013-03-04 13:14:25 -08:00
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
channel.c vmbus: remove hv_event_tasklet_disable/enable 2017-03-16 16:42:00 +09:00
channel_mgmt.c vmbus: remove hv_event_tasklet_disable/enable 2017-03-16 16:42:00 +09:00
connection.c vmbus: add direct isr callback mode 2017-02-14 10:20:35 -08:00
hv.c vmbus: change to per channel tasklet 2017-02-14 10:20:35 -08:00
hv_balloon.c Drivers: hv: balloon: add a fall through comment to hv_memory_notifier() 2017-01-31 11:05:58 +01:00
hv_fcopy.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_kvp.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_snapshot.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_util.c vmbus: add direct isr callback mode 2017-02-14 10:20:35 -08:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hyperv_vmbus.h vmbus: constify parameters where possible 2017-02-14 10:20:35 -08:00
ring_buffer.c vmbus: replace modulus operation with subtraction 2017-02-14 10:20:35 -08:00
vmbus_drv.c vmbus: use rcu for per-cpu channel list 2017-03-16 16:42:00 +09:00