]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xen/blkfront: read response from backend only once
authorJuergen Gross <jgross@suse.com>
Fri, 30 Jul 2021 10:38:52 +0000 (12:38 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 30 Aug 2021 10:01:53 +0000 (12:01 +0200)
commit71b66243f9898d0e54296b4e7035fb33cdcb0707
tree8e489825791abdad8223d1dbd761f2d24378eb0c
parent30dcc56bba911db561c35d4131baf983a41023f8
xen/blkfront: read response from backend only once

In order to avoid problems in case the backend is modifying a response
on the ring page while the frontend has already seen it, just read the
response into a local buffer in one go and then operate on that buffer
only.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Link: https://lore.kernel.org/r/20210730103854.12681-2-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/block/xen-blkfront.c