summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/button.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2021-03-15 09:22:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-17 16:43:52 +0100
commitd8887e85efca1e5d90e3d31281ee9c3b1028ffdc (patch)
tree850d92ac0b6663f89d8df02051e8ba0faa60e669 /drivers/acpi/button.c
parent3a19f808cb2bc8d0320c3ba5ec4ba525b3d6640c (diff)
downloadlinux-stable-d8887e85efca1e5d90e3d31281ee9c3b1028ffdc.tar.gz
linux-stable-d8887e85efca1e5d90e3d31281ee9c3b1028ffdc.tar.bz2
linux-stable-d8887e85efca1e5d90e3d31281ee9c3b1028ffdc.zip
xen/events: avoid handling the same event on two cpus at the same time
commit b6622798bc50b625a1e62f82c7190df40c1f5b21 upstream. When changing the cpu affinity of an event it can happen today that (with some unlucky timing) the same event will be handled on the old and the new cpu at the same time. Avoid that by adding an "event active" flag to the per-event data and call the handler only if this flag isn't set. Cc: stable@vger.kernel.org Reported-by: Julien Grall <julien@xen.org> Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Julien Grall <jgrall@amazon.com> Link: https://lore.kernel.org/r/20210306161833.4552-4-jgross@suse.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi/button.c')
0 files changed, 0 insertions, 0 deletions