aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen/grant_table.h
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-01-07 11:51:47 +0000
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-01-11 14:31:47 -0500
commitf0a70c882ea546bbd802643990ceded32c39facc (patch)
tree3544db8b681c4bd513758579afc4847e2e87ecbf /include/xen/grant_table.h
parentxen/gntdev: stop using "token" argument (diff)
downloadlinux-dev-f0a70c882ea546bbd802643990ceded32c39facc.tar.xz
linux-dev-f0a70c882ea546bbd802643990ceded32c39facc.zip
xen/gntdev: Fix circular locking dependency
apply_to_page_range will acquire PTE lock while priv->lock is held, and mn_invl_range_start tries to acquire priv->lock with PTE already held. Fix by not holding priv->lock during the entire map operation. This is safe because map->vma is set nonzero while the lock is held, which will cause subsequent maps to fail and will cause the unmap ioctl (and other users of gntdev_del_map) to return -EBUSY until the area is unmapped. It is similarly impossible for gntdev_vma_close to be called while the vma is still being created. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen/grant_table.h')
0 files changed, 0 insertions, 0 deletions