]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
blktap2: eliminate bogus clearing of PG_reserved
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Aug 2010 14:46:56 +0000 (15:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 10 Aug 2010 14:46:56 +0000 (15:46 +0100)
commitd189079551e4d02ea31109290e3adaf72c05c85c
treeca5aa516a085804240cba24795224549e45ddd77
parente45b817be52b1cbd05d4004db66b234a397605b8
blktap2: eliminate bogus clearing of PG_reserved

While making sure PG_reserved is set for pages allocated from the
balloon driver (and to be used for I/O) is a necessary thing to do
(as 2.6.18's as well as pv-ops' balloon drivers don't guarantee this
for the pages returned from alloc_empty_pages_and_page_vec()),
clearing this flag again when a page is no longer in use for I/O is
bogus at best (after all, the page at that point is not associated
with any MFN anymore), and causes problems when the balloon driver
properly marks all such pages as reserved and checks, upon their
return, that they are still marked this way.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blktap2/device.c
drivers/xen/blktap2/ring.c