diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2015-12-14 19:01:55 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-14 19:27:30 -0800 |
commit | a15025660d4703a8b37290a14734cb4a84875770 (patch) | |
tree | 26ef40f5244b4f8fafef7a83a5c8c1eacb1649ed /drivers/hv/hv_utils_transport.h | |
parent | a72f3a4ccff22de879a1f599210ecdd9bd483a43 (diff) | |
download | linux-a15025660d4703a8b37290a14734cb4a84875770.tar.gz linux-a15025660d4703a8b37290a14734cb4a84875770.tar.bz2 linux-a15025660d4703a8b37290a14734cb4a84875770.zip |
Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode
When Hyper-V host asks us to remove some util driver by closing the
appropriate channel there is no easy way to force the current file
descriptor holder to hang up but we can start to respond -EBADF to all
operations asking it to exit gracefully.
As we're setting hvt->mode from two separate contexts now we need to use
a proper locking.
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>
Diffstat (limited to 'drivers/hv/hv_utils_transport.h')
-rw-r--r-- | drivers/hv/hv_utils_transport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hv/hv_utils_transport.h b/drivers/hv/hv_utils_transport.h index bff4c921e817..06254a165a18 100644 --- a/drivers/hv/hv_utils_transport.h +++ b/drivers/hv/hv_utils_transport.h @@ -25,6 +25,7 @@ enum hvutil_transport_mode { HVUTIL_TRANSPORT_INIT = 0, HVUTIL_TRANSPORT_NETLINK, HVUTIL_TRANSPORT_CHARDEV, + HVUTIL_TRANSPORT_DESTROY, }; struct hvutil_transport { |