linux/drivers/hv
Vitaly Kuznetsov a524bb57dd Drivers: hv: util: move waiting for release to hv_utils_transport itself
[ Upstream commit e9c18ae6eb ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-12-20 10:07:23 +01:00
..
channel.c Drivers: hv: vmbus: Don't leak memory when a channel is rescinded 2017-03-30 09:41:27 +02:00
channel_mgmt.c Drivers: hv: vmbus: Don't leak channel ids 2017-03-30 09:41:27 +02:00
connection.c Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg() 2017-03-12 06:41:47 +01:00
hv.c drivers: hv: Turn off write permission on the hypercall page 2017-03-15 10:02:52 +08:00
hv_balloon.c Drivers: hv: balloon: Use available memory value in pressure report 2016-08-31 13:05:42 +02:00
hv_fcopy.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_kvp.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_snapshot.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_util.c hv: do not lose pending heartbeat vmbus packets 2016-10-25 08:52:10 +02:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-12-20 10:07:23 +01:00
hyperv_vmbus.h Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg() 2017-03-12 06:41:47 +01: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
ring_buffer.c Drivers: hv: vmbus: Prevent sending data on a rescinded channel 2017-03-12 06:41:49 +01:00
vmbus_drv.c vmbus: make sysfs names consistent with PCI 2016-11-01 09:07:13 -06:00