search for: err_worker

Displaying 17 results from an estimated 17 matches for "err_worker".

2016 Aug 22
4
[PATCH] CodingStyle: add some more error handling guidelines
On Mon, Aug 22, 2016 at 08:16:17AM -0600, Jonathan Corbet wrote: > On Mon, 22 Aug 2016 16:57:46 +0300 > "Michael S. Tsirkin" <mst at redhat.com> wrote: > > > commit commit ea04036032edda6f771c1381d03832d2ed0f6c31 ("CodingStyle: > > add some more error handling guidelines") suggests never naming goto > > labels after the goto location - that is
2016 Aug 22
4
[PATCH] CodingStyle: add some more error handling guidelines
On Mon, Aug 22, 2016 at 08:16:17AM -0600, Jonathan Corbet wrote: > On Mon, 22 Aug 2016 16:57:46 +0300 > "Michael S. Tsirkin" <mst at redhat.com> wrote: > > > commit commit ea04036032edda6f771c1381d03832d2ed0f6c31 ("CodingStyle: > > add some more error handling guidelines") suggests never naming goto > > labels after the goto location - that is
2020 May 29
0
[PATCH 1/6] vhost: allow device that does not depend on vhost worker
...g vhost_dev_set_owner(struct vhost_dev *dev) /* No owner, become one */ dev->mm = get_task_mm(current); dev->kcov_handle = kcov_common_handle(); - worker = kthread_create(vhost_worker, dev, "vhost-%d", current->pid); - if (IS_ERR(worker)) { - err = PTR_ERR(worker); - goto err_worker; - } + if (dev->use_worker) { + worker = kthread_create(vhost_worker, dev, + "vhost-%d", current->pid); + if (IS_ERR(worker)) { + err = PTR_ERR(worker); + goto err_worker; + } - dev->worker = worker; - wake_up_process(worker); /* avoid contributing to loadavg */ + d...
2016 Aug 22
0
[PATCH] CodingStyle: add some more error handling guidelines
.../* No owner, become one */ 486 dev->mm = get_task_mm(current); 487 worker = kthread_create(vhost_worker, dev, "vhost-%d", current->pid); 488 if (IS_ERR(worker)) { 489 err = PTR_ERR(worker); 490 goto err_worker; 491 } 492 493 dev->worker = worker; 494 wake_up_process(worker); /* avoid contributing to loadavg */ 495 496 err = vhost_attach_cgroups(dev); 497 if (err) 498 goto err_cgroup; 499 500...
2023 Mar 28
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...rker in the XA that + * it has completed. + */ + vhost_work_flush_on(worker); + + vhost_worker_put(dev, worker); + return 0; +} + /* Caller should have device mutex */ long vhost_dev_set_owner(struct vhost_dev *dev) { @@ -624,7 +752,7 @@ long vhost_dev_set_owner(struct vhost_dev *dev) goto err_worker; for (i = 0; i < dev->nvqs; i++) - dev->vqs[i]->worker = worker; + __vhost_vq_attach_worker(dev->vqs[i], worker); } err = vhost_dev_alloc_iovecs(dev); @@ -633,7 +761,7 @@ long vhost_dev_set_owner(struct vhost_dev *dev) return 0; err_iovecs: - vhost_worker_free(dev...
2010 Sep 03
0
[PATCH] vhost: error handling fix
...(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 7c75dce..666aa36 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -298,6 +298,7 @@ static long vhost_dev_set_owner(struct vhost_dev *dev) return 0; err_cgroup: kthread_stop(worker); + dev->worker = NULL; err_worker: if (dev->mm) mmput(dev->mm); -- 1.7.2.rc0.14.g41c1c
2010 Sep 03
0
[PATCH] vhost: error handling fix
...(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 7c75dce..666aa36 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -298,6 +298,7 @@ static long vhost_dev_set_owner(struct vhost_dev *dev) return 0; err_cgroup: kthread_stop(worker); + dev->worker = NULL; err_worker: if (dev->mm) mmput(dev->mm); -- 1.7.2.rc0.14.g41c1c
2013 Jul 07
2
[PATCH v2 03/11] vhost: Make vhost a separate module
...that */ > > > return dev->mm == current->mm ? 0 : -EPERM; > > > } > > > +EXPORT_SYMBOL_GPL(vhost_dev_check_owner); > > > > > > struct vhost_attach_cgroups_struct { > > > struct vhost_work work; > > > @@ -385,11 +396,13 @@ err_worker: > > > err_mm: > > > return err; > > > } > > > +EXPORT_SYMBOL_GPL(vhost_dev_set_owner); > > > > > > struct vhost_memory *vhost_dev_reset_owner_prepare(void) > > > { > > > return kmalloc(offsetof(struct vhost_memory, r...
2013 Jul 07
2
[PATCH v2 03/11] vhost: Make vhost a separate module
...that */ > > > return dev->mm == current->mm ? 0 : -EPERM; > > > } > > > +EXPORT_SYMBOL_GPL(vhost_dev_check_owner); > > > > > > struct vhost_attach_cgroups_struct { > > > struct vhost_work work; > > > @@ -385,11 +396,13 @@ err_worker: > > > err_mm: > > > return err; > > > } > > > +EXPORT_SYMBOL_GPL(vhost_dev_set_owner); > > > > > > struct vhost_memory *vhost_dev_reset_owner_prepare(void) > > > { > > > return kmalloc(offsetof(struct vhost_memory, r...
2020 May 29
12
[PATCH 0/6] vDPA: doorbell mapping
Hi all: This series introduce basic functionality of doorbell mapping support for vhost-vDPA. Userspace program may use mmap() to map a the doorbell of a specific virtqueue into its address space. This is help to reudce the syscall or vmexit overhead. A new vdpa_config_ops was introduced to report the location of the doorbell, vhost_vdpa may then choose to map the doorbell when: - The doorbell
2020 May 29
12
[PATCH 0/6] vDPA: doorbell mapping
Hi all: This series introduce basic functionality of doorbell mapping support for vhost-vDPA. Userspace program may use mmap() to map a the doorbell of a specific virtqueue into its address space. This is help to reudce the syscall or vmexit overhead. A new vdpa_config_ops was introduced to report the location of the doorbell, vhost_vdpa may then choose to map the doorbell when: - The doorbell
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
2013 Jul 07
0
[PATCH v2 03/11] vhost: Make vhost a separate module
...rn dev->mm == current->mm ? 0 : -EPERM; > > > > } > > > > +EXPORT_SYMBOL_GPL(vhost_dev_check_owner); > > > > > > > > struct vhost_attach_cgroups_struct { > > > > struct vhost_work work; > > > > @@ -385,11 +396,13 @@ err_worker: > > > > err_mm: > > > > return err; > > > > } > > > > +EXPORT_SYMBOL_GPL(vhost_dev_set_owner); > > > > > > > > struct vhost_memory *vhost_dev_reset_owner_prepare(void) > > > > { > > > > return...
2011 Nov 11
10
[RFC] [ver3 PATCH 0/6] Implement multiqueue virtio-net
This patch series resurrects the earlier multiple TX/RX queues functionality for virtio_net, and addresses the issues pointed out. It also includes an API to share irq's, f.e. amongst the TX vqs. I plan to run TCP/UDP STREAM and RR tests for local->host and local->remote, and send the results in the next couple of days. patch #1: Introduce VIRTIO_NET_F_MULTIQUEUE patch #2: Move
2011 Nov 11
10
[RFC] [ver3 PATCH 0/6] Implement multiqueue virtio-net
This patch series resurrects the earlier multiple TX/RX queues functionality for virtio_net, and addresses the issues pointed out. It also includes an API to share irq's, f.e. amongst the TX vqs. I plan to run TCP/UDP STREAM and RR tests for local->host and local->remote, and send the results in the next couple of days. patch #1: Introduce VIRTIO_NET_F_MULTIQUEUE patch #2: Move
2013 May 06
13
[PATCH v2 00/11] vhost cleanups
MST, This is on top of [PATCH 0/2] vhost-net fix ubuf. Asias He (11): vhost: Remove vhost_enable_zcopy in vhost.h vhost: Move VHOST_NET_FEATURES to net.c vhost: Make vhost a separate module vhost: Remove comments for hdr in vhost.h vhost: Simplify dev->vqs[i] access vhost-net: Cleanup vhost_ubuf and vhost_zcopy vhost-scsi: Remove unnecessary forward struct vhost_scsi declaration
2013 May 06
13
[PATCH v2 00/11] vhost cleanups
MST, This is on top of [PATCH 0/2] vhost-net fix ubuf. Asias He (11): vhost: Remove vhost_enable_zcopy in vhost.h vhost: Move VHOST_NET_FEATURES to net.c vhost: Make vhost a separate module vhost: Remove comments for hdr in vhost.h vhost: Simplify dev->vqs[i] access vhost-net: Cleanup vhost_ubuf and vhost_zcopy vhost-scsi: Remove unnecessary forward struct vhost_scsi declaration