From: Roger Pau Monne Date: Mon, 12 Aug 2013 10:53:44 +0000 (+0200) Subject: xen-blkfront: revoke foreign access for grants not mapped by the backend X-Git-Tag: v3.13-rc1~100^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe363c476afe8ec992d3baf682670a4bd1b6ce6;p=pandora-kernel.git xen-blkfront: revoke foreign access for grants not mapped by the backend There's no need to keep the foreign access in a grant if it is not persistently mapped by the backend. This allows us to free grants that are not mapped by the backend, thus preventing blkfront from hoarding all grants. The main effect of this is that blkfront will only persistently map the same grants as the backend, and it will always try to use grants that are already mapped by the backend. Also the number of persistent grants in blkfront is the same as in blkback (and is controlled by the value in blkback). Signed-off-by: Roger Pau Monné Reviewed-by: David Vrabel Acked-by: Matt Wilson Cc: Konrad Rzeszutek Wilk Cc: David Vrabel Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jens Axboe --- Reading git-diff-tree failed