projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7b19d
)
virtio_pci: Clear stale cpumask when setting irq affinity
author
Jiang Liu
<
[email protected]
>
Thu, 4 Jun 2015 08:41:44 +0000
(16:41 +0800)
committer
Michael S. Tsirkin
<
[email protected]
>
Thu, 4 Jun 2015 12:47:49 +0000
(14:47 +0200)
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.
Cc:
[email protected]
Signed-off-by: Jiang Liu <
[email protected]
>
Signed-off-by: Michael S. Tsirkin <
[email protected]
>
drivers/virtio/virtio_pci_common.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_pci_common.c
b/drivers/virtio/virtio_pci_common.c
index e894eb278d8336d018d3e6e8c29556dc9b5f3cb5..eba1b7ac729454d30b1d611cd01d45b5ba23407e 100644
(file)
--- 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 *vq, int cpu)
if (cpu == -1)
irq_set_affinity_hint(irq, NULL);
else {
+ cpumask_clear(mask);
cpumask_set_cpu(cpu, mask);
irq_set_affinity_hint(irq, mask);
}