search for: stop_work

Displaying 4 results from an estimated 4 matches for "stop_work".

2006 Jul 31
0
MY worker won''t stop working
...red at the top and then disappeared off the list once it was finished. I''m not using a system call or any external program in my worker. It''s main function is to read data from a file into a database. I''ve been successful in getting the worker to stop now by adding a stop_work method to my worker which sets @running to false in the process_cdr class and causes the code in do_work to return. My woker method stop_work calls processs_cdr.stop_process: def stop_work @process_cdr.stop_process end def do_work(args) # This method is called in it''s own new t...
2023 Mar 28
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...sk_create(vhost_worker, worker, name); @@ -596,14 +634,104 @@ static struct vhost_worker *vhost_worker_create(struct vhost_dev *dev) worker->vtsk = vtsk; vhost_task_start(vtsk); + + ret = xa_alloc(&dev->worker_xa, &id, worker, xa_limit_32b, GFP_KERNEL); + if (ret < 0) + goto stop_worker; + worker->id = id; + return worker; +stop_worker: + vhost_task_stop(vtsk); free_worker: kfree(worker); - dev->worker = NULL; return NULL; } +/* Caller must have device and virtqueue mutex */ +static void __vhost_vq_attach_worker(struct vhost_virtqueue *vq, + struct vhos...
2006 Jul 18
7
backgroundrb and autotest
Hi, First, thanks for the plugin. Sorry if this is not strictly a backgroundrb issue but I thought others on this list might have come across this problem. I''m trying to run the test that comes via the worker generator. The test works fine when running ''rake test_functional'', but when the tests are run by autotest I get "uninitialized constant BackgrounDRb"
2023 Mar 28
12
[PATCH v6 00/11] vhost: multiple worker support
The following patches were built over linux-next which contains various vhost patches in mst's tree and the vhost_task patchset in Christian Brauner's tree: git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git kernel.user_worker branch: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=kernel.user_worker The latter patchset handles the review comment