Lines Matching refs:worker
237 if (dev->worker) { in vhost_work_flush()
257 if (!dev->worker) in vhost_work_queue()
266 wake_up_process(dev->worker); in vhost_work_queue()
409 dev->worker = NULL; in vhost_dev_init()
475 struct task_struct *worker; in vhost_dev_set_owner() local
486 worker = kthread_create(vhost_worker, dev, "vhost-%d", current->pid); in vhost_dev_set_owner()
487 if (IS_ERR(worker)) { in vhost_dev_set_owner()
488 err = PTR_ERR(worker); in vhost_dev_set_owner()
492 dev->worker = worker; in vhost_dev_set_owner()
493 wake_up_process(worker); /* avoid contributing to loadavg */ in vhost_dev_set_owner()
505 kthread_stop(worker); in vhost_dev_set_owner()
506 dev->worker = NULL; in vhost_dev_set_owner()
636 if (dev->worker) { in vhost_dev_cleanup()
637 kthread_stop(dev->worker); in vhost_dev_cleanup()
638 dev->worker = NULL; in vhost_dev_cleanup()