summaryrefslogtreecommitdiff
path: root/sys/dev/pv/hyperv.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-15 20:08:57 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-15 20:08:57 +0000
commit09690d8a47576c9d23f89f1b8ff840c3d97ec963 (patch)
treeb7e6815915d795cd96d744353866ccc6e798e727 /sys/dev/pv/hyperv.c
parent6d4adeb7103295f6106a5c334d8cd7a404ac7c51 (diff)
Make sure we can free GPA handles when cold
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r--sys/dev/pv/hyperv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c
index f9840e87113..808fcdbfd47 100644
--- a/sys/dev/pv/hyperv.c
+++ b/sys/dev/pv/hyperv.c
@@ -1678,7 +1678,8 @@ hv_handle_free(struct hv_channel *ch, uint32_t handle)
cmd.chm_chanid = ch->ch_id;
cmd.chm_gpadl = handle;
- rv = hv_cmd(sc, &cmd, sizeof(cmd), &rsp, sizeof(rsp), 0);
+ rv = hv_cmd(sc, &cmd, sizeof(cmd), &rsp, sizeof(rsp), cold ?
+ HCF_NOSLEEP : 0);
if (rv)
DPRINTF("%s: GPADL_DISCONN failed with %d\n",
sc->sc_dev.dv_xname, rv);