]> git.baikalelectronics.ru Git - kernel.git/commit
xen/blkback: use lateeoi irq binding
authorJuergen Gross <jgross@suse.com>
Mon, 7 Sep 2020 13:47:27 +0000 (15:47 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 20 Oct 2020 08:22:01 +0000 (10:22 +0200)
commitd75b48ae8270b4d92c0d53becdb715e788c72087
tree828ef71bf81f360b50e7d6b13616a9cedd9b6b8f
parentb6494672bc3b12512e95041a14c69993fadcf61b
xen/blkback: use lateeoi irq binding

In order to reduce the chance for the system becoming unresponsive due
to event storms triggered by a misbehaving blkfront use the lateeoi
irq binding for blkback and unmask the event channel only after
processing all pending requests.

As the thread processing requests is used to do purging work in regular
intervals an EOI may be sent only after having received an event. If
there was no pending I/O request flag the EOI as spurious.

This is part of XSA-332.

Cc: stable@vger.kernel.org
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/xenbus.c