]> 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)
commit1489df9b55edb025f4877deac57062c4576f1d48
tree828ef71bf81f360b50e7d6b13616a9cedd9b6b8f
parentaff4aa290b8b1da2a643baf073cc5c3cff825d88
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