]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen-blkfront: restore the non-persistent data path
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 29 Oct 2013 17:31:14 +0000 (18:31 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 12:13:26 +0000 (14:13 +0200)
commitc00a93cb65b884921ee80d4a16fbd64302f80cf0
tree2a2adb6ab761a227cb82779daf180d9146d9d6d0
parent30ea67254a61e0389575970068f806c400d75daa
xen-blkfront: restore the non-persistent data path

commit bfe11d6de1c416cea4f3f0f35f864162063ce3fa upstream.

When persistent grants were added they were always used, even if the
backend doesn't have this feature (there's no harm in always using the
same set of pages). This restores the old data path when the backend
doesn't have persistent grants, removing the burden of doing a memcpy
when it is not actually needed.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Felipe Franciosi <felipe.franciosi@citrix.com>
Cc: Felipe Franciosi <felipe.franciosi@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[v2: Fix up whitespace issues]

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/block/xen-blkfront.c