]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkback: use balloon pages for persistent grants
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 14 Feb 2013 10:12:09 +0000 (11:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:35 +0000 (06:03 +0800)
commitdfd7c4e87378a9d9d7087df5c0e11aa34c1b8231
tree7df65f847c1838638e30c1a9f387cc8a34be884e
parenta4c06c2a9b1cfdd6f0e310f93de35549cb72fec8
xen-blkback: use balloon pages for persistent grants

commit 087ffecdaa1875cc683a7a5bc0695b3ebfce3bad upstream.

With current persistent grants implementation we are not freeing the
persistent grants after we disconnect the device. Since grant map
operations change the mfn of the allocated page, and we can no longer
pass it to __free_page without setting the mfn to a sane value, use
balloon grant pages instead, as the gntdev device does.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkback/blkback.c