]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/block/xen-blkfront.c
blkfront: Lock blockfront_info during xbdev removal
authorDaniel Stodden <daniel.stodden@citrix.com>
Fri, 30 Apr 2010 22:01:22 +0000 (22:01 +0000)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:45:27 +0000 (18:45 +0200)
commitfa1bd3591a669b92b635dbdb11d1a32a5630821b
tree41309de6425e854420b26bdcfd94accaf52c3cee
parent7fd152f4b6ae4f3cf89e4b7a0383cc3c470772fc
blkfront: Lock blockfront_info during xbdev removal

Same approach as blkfront_closing:
 * Grab the bdev safely, holding the info mutex.
 * Zap xbdev safely, holding the info mutex.
 * Try bdev removal safely, holding bd_mutex.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/block/xen-blkfront.c