stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "virtio_pci: Clear stale cpumask when setting irq affinity" has been added to the 4.0-stable tree
@ 2015-06-19 19:31 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2015-06-19 19:31 UTC (permalink / raw)
  To: jiang.liu, gregkh, mst; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    virtio_pci: Clear stale cpumask when setting irq affinity

to the 4.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     virtio_pci-clear-stale-cpumask-when-setting-irq-affinity.patch
and it can be found in the queue-4.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 210d150e1f5da506875e376422ba31ead2d49621 Mon Sep 17 00:00:00 2001
From: Jiang Liu <jiang.liu@linux.intel.com>
Date: Thu, 4 Jun 2015 16:41:44 +0800
Subject: virtio_pci: Clear stale cpumask when setting irq affinity

From: Jiang Liu <jiang.liu@linux.intel.com>

commit 210d150e1f5da506875e376422ba31ead2d49621 upstream.

The cpumask vp_dev->msix_affinity_masks[info->msix_vector] may contain
staled information when vp_set_vq_affinity() gets called, so clear it
before setting the new cpu bit mask.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/virtio/virtio_pci_common.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/virtio/virtio_pci_common.c
+++ b/drivers/virtio/virtio_pci_common.c
@@ -423,6 +423,7 @@ int vp_set_vq_affinity(struct virtqueue
 		if (cpu == -1)
 			irq_set_affinity_hint(irq, NULL);
 		else {
+			cpumask_clear(mask);
 			cpumask_set_cpu(cpu, mask);
 			irq_set_affinity_hint(irq, mask);
 		}


Patches currently in stable-queue which might be from jiang.liu@linux.intel.com are

queue-4.0/virtio_pci-clear-stale-cpumask-when-setting-irq-affinity.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-19 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 19:31 Patch "virtio_pci: Clear stale cpumask when setting irq affinity" has been added to the 4.0-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).