From 5328d3b17a74f4ea67402cd387366461329146a9 Mon Sep 17 00:00:00 2001 From: mikeb Date: Thu, 15 Jun 2017 20:08:56 +0000 Subject: [PATCH] Make sure we can free GPA handles when cold --- sys/dev/pv/hyperv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1