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>
Tue, 17 Apr 2012 17:29:13 +0000 (13:29 -0400)
commit569ca5b3f94cd0b3295ec5943aa457cf4a4f6a3a
tree5771fbace4a88ef1feb29f5dd4096f8ba4c9009b
parent9fe2a7015393dc0203ac39242ae9c89038994f3c
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.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/grant-table.c