]> git.baikalelectronics.ru Git - kernel.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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 19 Feb 2013 20:17:21 +0000 (15:17 -0500)
commitcd8b5c82654e57f5b713bb46ed49f95d653a2734
tree2a30eb9d4cea0a13587c7e4748d3584e070b35e1
parentaf3056e2ba6bee3508e0293491566b85ff5271bd
xen-blkback: use balloon pages for persistent grants

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: stable@vger.kernel.org
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c