]> git.karo-electronics.de Git - linux-beck.git/commit
xen-blkback: safely unmap grants in case they are still in use
authorJennifer Herbert <jennifer.herbert@citrix.com>
Mon, 5 Jan 2015 16:49:22 +0000 (16:49 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:03:16 +0000 (14:03 +0000)
commitc43cf3ea838541ea9f066f4f1aa7b197cba6276e
tree36e8b188920c0b47074397234bd9b923338f5f34
parent745282256c754ac5ed3dbe2fbef6471dc1373417
xen-blkback: safely unmap grants in case they are still in use

Use gnttab_unmap_refs_async() to wait until the mapped pages are no
longer in use before unmapping them.

This allows blkback to use network storage which may retain refs to
pages in queued skbs after the block I/O has completed.

Signed-off-by: Jennifer Herbert <jennifer.herbert@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jens Axboe <axboe@kernel.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h