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:
sephe 2016-12-08 05:15:00 +00:00
parent 7571ef95c1
commit 092f1602f5

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