hyperv/vmbus: Utilize vmbus_chan_run_task()

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8686
This commit is contained in:
Sepherosa Ziehau 2016-12-08 05:15:00 +00:00
parent e94965d82e
commit 98cb13b6cc

View File

@ -772,8 +772,7 @@ vmbus_chan_clear_chmap(struct vmbus_channel *chan)
struct task chmap_task;
TASK_INIT(&chmap_task, 0, vmbus_chan_clrchmap_task, chan);
taskqueue_enqueue(chan->ch_tq, &chmap_task);
taskqueue_drain(chan->ch_tq, &chmap_task);
vmbus_chan_run_task(chan, &chmap_task);
}
static void