search for: put_online_cpus

Displaying 20 results from an estimated 85 matches for "put_online_cpus".

Did you mean: num_online_cpus
2013 Jan 18
3
[PATCH V5 1/2] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...sirkin" <mst at redhat.com> Cc: Jason Wang <jasowang at redhat.com> Cc: Eric Dumazet <erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 60 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 18
3
[PATCH V5 1/2] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...sirkin" <mst at redhat.com> Cc: Jason Wang <jasowang at redhat.com> Cc: Eric Dumazet <erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 60 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 21
6
[PATCH V6 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...redhat.com> Cc: Eric Dumazet <erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 58 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 21
6
[PATCH V6 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...redhat.com> Cc: Eric Dumazet <erdnetdev at gmail.com> Cc: virtualization at lists.linux-foundation.org Cc: netdev at vger.kernel.org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 58 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 25
4
[PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
....org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst at redhat.com> --- V6->V7: serialize virtnet_set_queues to avoid a race with cpu hotplug (Jason) V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 58 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 25
4
[PATCH V7 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
....org Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst at redhat.com> --- V6->V7: serialize virtnet_set_queues to avoid a race with cpu hotplug (Jason) V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 58 +++++++++++++++++++++++++++++++++++++++---------...
2013 Jan 25
5
[PATCH V8 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...at redhat.com> --- V7->V8: set vq index unconditionally, make bisect happy, make sure don't introduce bug. (Jason) V6->V7: serialize virtnet_set_queues to avoid a race with cpu hotplug (Jason) V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 67 ++++++++++++++++++++++++++++++++++++++----------...
2013 Jan 25
5
[PATCH V8 1/3] virtio-net: fix the set affinity bug when CPU IDs are not consecutive
...at redhat.com> --- V7->V8: set vq index unconditionally, make bisect happy, make sure don't introduce bug. (Jason) V6->V7: serialize virtnet_set_queues to avoid a race with cpu hotplug (Jason) V5->V6: remove {get|put}_online_cpus from virtnet_del_vqs (Jason) V4->V5: Add get/put_online_cpus to avoid CPUs go up and down during operations (Rusty) V3->V4: move vq_index into virtnet_info (Jason) change the mapping value when not setting affinity (Jason) address the comments about select_queue (Rusty) drivers/net/virtio_net.c | 67 ++++++++++++++++++++++++++++++++++++++----------...
2016 Apr 05
0
[PATCH v4 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k
...rc = -EINVAL; -out: - set_cpus_allowed_ptr(current, old_mask); - free_cpumask_var(old_mask); return rc; } /* + * Call the System Management Mode BIOS. + */ +static int i8k_smm(struct smm_regs *regs) +{ + int ret; + + get_online_cpus(); + ret = smp_call_on_cpu(0, true, i8k_smm_func, regs); + put_online_cpus(); + + return ret; +} + +/* * Read the fan status. */ static int i8k_get_fan_status(int fan) -- 2.6.2
2016 Apr 06
0
[PATCH v5 5/6] dcdbas: make use of smp_call_on_cpu()
...smi_cmd *smi_cmd) +{ + int ret; + + if (smi_cmd->magic != SMI_CMD_MAGIC) { + dev_info(&dcdbas_pdev->dev, "%s: invalid magic value\n", + __func__); + return -EBADR; + } + + /* SMI requires CPU 0 */ + get_online_cpus(); + ret = smp_call_on_cpu(0, raise_smi, smi_cmd, true); + put_online_cpus(); + return ret; } -- 2.6.6
2016 Apr 06
0
[PATCH v5 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k
...rc = -EINVAL; -out: - set_cpus_allowed_ptr(current, old_mask); - free_cpumask_var(old_mask); return rc; } /* + * Call the System Management Mode BIOS. + */ +static int i8k_smm(struct smm_regs *regs) +{ + int ret; + + get_online_cpus(); + ret = smp_call_on_cpu(0, i8k_smm_func, regs, true); + put_online_cpus(); + + return ret; +} + +/* * Read the fan status. */ static int i8k_get_fan_status(int fan) -- 2.6.6
2013 Jan 16
6
[PATCH V2] mm/slab: add a leak decoder callback
...(!s->refcount) { list_del(&s->list); + if (unlikely(decoder)) + s->decoder = decoder; + if (!__kmem_cache_shutdown(s)) { mutex_unlock(&slab_mutex); if (s->flags & SLAB_DESTROY_BY_RCU) @@ -279,8 +283,19 @@ void kmem_cache_destroy(struct kmem_cache *s) } put_online_cpus(); } + +void kmem_cache_destroy(struct kmem_cache *s) +{ + return __kmem_cache_destroy(s, NULL); +} EXPORT_SYMBOL(kmem_cache_destroy); +void kmem_cache_destroy_decoder(struct kmem_cache *s, void (*decoder)(void *)) +{ + return __kmem_cache_destroy(s, decoder); +} +EXPORT_SYMBOL(kmem_cache_destr...
2013 Feb 12
6
[PATCH v3 0/5] virtio-scsi multiqueue
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). The patches build on top of the new virtio APIs at http://permalink.gmane.org/gmane.linux.kernel.virtualization/18431; the new API simplifies the locking of the virtio-scsi driver nicely, thus it makes sense to require them as a prerequisite.
2013 Feb 12
6
[PATCH v3 0/5] virtio-scsi multiqueue
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). The patches build on top of the new virtio APIs at http://permalink.gmane.org/gmane.linux.kernel.virtualization/18431; the new API simplifies the locking of the virtio-scsi driver nicely, thus it makes sense to require them as a prerequisite.
2016 Apr 05
2
[PATCH v4 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k
...- free_cpumask_var(old_mask); > return rc; > } > > /* > + * Call the System Management Mode BIOS. > + */ > +static int i8k_smm(struct smm_regs *regs) > +{ > + int ret; > + > + get_online_cpus(); > + ret = smp_call_on_cpu(0, true, i8k_smm_func, regs); > + put_online_cpus(); > + > + return ret; > +} > + > +/* > * Read the fan status. > */ > static int i8k_get_fan_status(int fan) > -- > 2.6.2 >
2016 Apr 05
2
[PATCH v4 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k
...- free_cpumask_var(old_mask); > return rc; > } > > /* > + * Call the System Management Mode BIOS. > + */ > +static int i8k_smm(struct smm_regs *regs) > +{ > + int ret; > + > + get_online_cpus(); > + ret = smp_call_on_cpu(0, true, i8k_smm_func, regs); > + put_online_cpus(); > + > + return ret; > +} > + > +/* > * Read the fan status. > */ > static int i8k_get_fan_status(int fan) > -- > 2.6.2 >
2016 Apr 05
10
[PATCH v4 0/6] Support calling functions on dedicated physical cpu
Some hardware (e.g. Dell Studio laptops) require special functions to be called on physical cpu 0 in order to avoid occasional hangs. When running as dom0 under Xen this could be achieved only via special boot parameters (vcpu pinning) limiting the hypervisor in it's scheduling decisions. This patch series is adding a generic function to be able to temporarily pin a (virtual) cpu to a
2016 Apr 05
10
[PATCH v4 0/6] Support calling functions on dedicated physical cpu
Some hardware (e.g. Dell Studio laptops) require special functions to be called on physical cpu 0 in order to avoid occasional hangs. When running as dom0 under Xen this could be achieved only via special boot parameters (vcpu pinning) limiting the hypervisor in it's scheduling decisions. This patch series is adding a generic function to be able to temporarily pin a (virtual) cpu to a
2013 Mar 20
7
[PATCH V6 0/5] virtio-scsi multiqueue
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). This version rebased on Rusty's virtio ring rework patches, which has already gone into virtio-next today. We hope this can go into virtio-next together with the virtio ring rework pathes. V6: rework "redo allocation of target data"
2013 Mar 20
7
[PATCH V6 0/5] virtio-scsi multiqueue
This series implements virtio-scsi queue steering, which gives performance improvements of up to 50% (measured both with QEMU and tcm_vhost backends). This version rebased on Rusty's virtio ring rework patches, which has already gone into virtio-next today. We hope this can go into virtio-next together with the virtio ring rework pathes. V6: rework "redo allocation of target data"