search for: vhost_has_work_pending

Displaying 2 results from an estimated 2 matches for "vhost_has_work_pending".

2020 Jun 01
0
[PATCH net-next v8 7/7] net: vhost: make busyloop_intr more accurate
...08:47:35AM +0800, Jason Wang wrote: > > > On 2018?08?21? 08:33, Jason Wang wrote: > > > > > > On 2018?08?19? 20:11, xiangxia.m.yue at gmail.com wrote: > > > From: Tonghao Zhang <xiangxia.m.yue at gmail.com> > > > > > > The patch uses vhost_has_work_pending() to check if > > > the specified handler is scheduled, because in the most case, > > > vhost_has_work() return true when other side handler is added > > > to worker list. Use the vhost_has_work_pending() insead of > > > vhost_has_work(). > > > > &gt...
2018 Sep 09
0
[PATCH net-next v8 5/7] net: vhost: introduce bitmap for vhost_poll
...;poll_id = poll_id; > > vhost_work_init(&poll->work, fn); > > } > > EXPORT_SYMBOL_GPL(vhost_poll_init); > > @@ -276,8 +277,16 @@ bool vhost_has_work(struct vhost_dev *dev) > > } > > EXPORT_SYMBOL_GPL(vhost_has_work); > > > > +bool vhost_has_work_pending(struct vhost_dev *dev, int poll_id) > > +{ > > + return !llist_empty(&dev->work_list) && > > + test_bit(poll_id, dev->work_pending); > > I think we've already had something similar. E.g can we test > VHOST_WORK_QUEUED instead? done, t...