artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b611767
)
Make sure we can free GPA handles when cold
author
mikeb
<mikeb@openbsd.org>
Thu, 15 Jun 2017 20:08:56 +0000
(20:08 +0000)
committer
mikeb
<mikeb@openbsd.org>
Thu, 15 Jun 2017 20:08:56 +0000
(20:08 +0000)
sys/dev/pv/hyperv.c
patch
|
blob
|
history
diff --git
a/sys/dev/pv/hyperv.c
b/sys/dev/pv/hyperv.c
index
f9840e8
..
808fcdb
100644
(file)
--- 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);