hyperv/vmbus: Expose channel management taskqueue for driver to use.

MFC after:	3 days
Sponsored by:	Microsoft
This commit is contained in:
sephe 2016-10-19 09:12:14 +00:00
parent 38255c19df
commit b4afcf142f
2 changed files with 10 additions and 0 deletions

View File

@ -118,6 +118,7 @@ struct vmbus_chan_br {
struct vmbus_channel;
struct hyperv_guid;
struct task;
struct taskqueue;
typedef void (*vmbus_chan_callback_t)(struct vmbus_channel *, void *);
@ -179,5 +180,7 @@ int vmbus_chan_prplist_nelem(int br_size, int prpcnt_max,
int dlen_max);
bool vmbus_chan_rx_empty(const struct vmbus_channel *chan);
bool vmbus_chan_tx_empty(const struct vmbus_channel *chan);
struct taskqueue *
vmbus_chan_mgmt_tq(const struct vmbus_channel *chan);
#endif /* !_VMBUS_H_ */

View File

@ -1721,3 +1721,10 @@ vmbus_chan_run_task(struct vmbus_channel *chan, struct task *task)
taskqueue_enqueue(chan->ch_tq, task);
taskqueue_drain(chan->ch_tq, task);
}
struct taskqueue *
vmbus_chan_mgmt_tq(const struct vmbus_channel *chan)
{
return (chan->ch_mgmt_tq);
}