]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/gnttab: add deferred freeing logic
authorJan Beulich <JBeulich@suse.com>
Thu, 5 Apr 2012 15:10:07 +0000 (16:10 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 11 May 2012 18:16:49 +0000 (14:16 -0400)
commit406d69f289e2e7e6ff77d9b93ecd53c190f4579e
tree36735dde851da1efde76c2e570dd2d537c6bec7a
parent73e3397df281d4cc5266f741f5474cb062758764
xen/gnttab: add deferred freeing logic

Rather than just leaking pages that can't be freed at the point where
access permission for the backend domain gets revoked, put them on a
list and run a timer to (infrequently) retry freeing them. (This can
particularly happen when unloading a frontend driver when devices are
still present, and the backend still has them in non-closed state or
hasn't finished closing them yet.)

[upstream git commit 569ca5b3f94cd0b3295ec5943aa457cf4a4f6a3a]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/grant-table.c