]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Drivers: hv: util: move waiting for release to hv_utils_transport itself
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 13 Apr 2017 21:09:00 +0000 (23:09 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 20 Apr 2017 07:45:33 +0000 (09:45 +0200)
commit0b14d74c5c95b76242814bcf2a2ffb6c6e8ad41d
tree953960972e16e97eace90f95de15227c69d05493
parent51910f830c661d22b100326967d2738b7e87aced
Drivers: hv: util: move waiting for release to hv_utils_transport itself

BugLink: http://bugs.launchpad.net/bugs/1682561
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: 5a66fecbf6aa ("Drivers: hv: util: kvp: Fix a rescind processing issue")
Fixes: 20951c7535b5 ("Drivers: hv: util: Fcopy: Fix a rescind processing issue")
Fixes: d77044d142e9 ("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>
(cherry picked from commit e9c18ae6eb2b312f16c63e34b43ea23926daa398)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hv/hv_fcopy.c
drivers/hv/hv_kvp.c
drivers/hv/hv_snapshot.c
drivers/hv/hv_utils_transport.c
drivers/hv/hv_utils_transport.h