hyperv/hn: Utilize vmbus_chan_xact_wait

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8612
This commit is contained in:
Sepherosa Ziehau 2016-11-28 05:15:28 +00:00
parent a54152eaa5
commit f6f2e0ce38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309226
2 changed files with 4 additions and 8 deletions

View File

@ -109,10 +109,8 @@ hn_nvs_xact_execute(struct hn_softc *sc, struct vmbus_xact *xact,
vmbus_xact_deactivate(xact); vmbus_xact_deactivate(xact);
return (NULL); return (NULL);
} }
if (HN_CAN_SLEEP(sc)) hdr = vmbus_chan_xact_wait(sc->hn_prichan, xact, &resplen,
hdr = vmbus_xact_wait(xact, &resplen); HN_CAN_SLEEP(sc));
else
hdr = vmbus_xact_busywait(xact, &resplen);
/* /*
* Check this NVS response message. * Check this NVS response message.

View File

@ -232,10 +232,8 @@ hn_rndis_xact_exec1(struct hn_softc *sc, struct vmbus_xact *xact, size_t reqlen,
if_printf(sc->hn_ifp, "RNDIS ctrl send failed: %d\n", error); if_printf(sc->hn_ifp, "RNDIS ctrl send failed: %d\n", error);
return (NULL); return (NULL);
} }
if (HN_CAN_SLEEP(sc)) return (vmbus_chan_xact_wait(sc->hn_prichan, xact, comp_len,
return (vmbus_xact_wait(xact, comp_len)); HN_CAN_SLEEP(sc)));
else
return (vmbus_xact_busywait(xact, comp_len));
} }
static const void * static const void *