]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
xen/blktap: fix locking
authorJan Beulich <jbeulich@novell.com>
Wed, 1 Jun 2011 15:09:50 +0000 (16:09 +0100)
committerJan Beulich <jbeulich@novell.com>
Wed, 1 Jun 2011 15:09:50 +0000 (16:09 +0100)
commit6919b58c60768aeb47470fca3eb849cdce934d90
treebc4230e92a60347e74cc1f80d486c2da25597aa1
parent723c3e82004c2d39deed694653cde534216e5e5f
xen/blktap: fix locking

blktap_read_ufe_ring() invalidating the mmap index of a request could
race with blktap_clear_pte() reading it. Move the invalidation into
the info->mm->mmap_sem protected region in fast_flush_area(), noting
that doing this on the failure path of dispatch_rw_block_io() is
benign.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/blktap/blktap.c