Daniel Stodden b70f5fa043 blkfront: Lock blkfront_info when closing
The bdev .open/.release fops race against backend switches to Closing,
handled by the XenBus thread.

The original code attempted to serialize block device holders and
xenbus only via bd_mutex. This is insufficient, the info->bd pointer
may already be stale (or null) while xenbus tries to bump up the
refcount.

Protect blkfront_info with a dedicated mutex.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
2010-08-07 18:38:43 +02:00
..
2010-07-20 16:25:41 -07:00
2010-07-01 09:39:48 +02:00
2010-08-07 18:26:29 +02:00
2010-07-20 16:25:41 -07:00
2010-07-19 13:17:37 -07:00
2010-08-07 18:26:08 +02:00
2010-06-01 12:04:35 -04:00
2010-07-26 08:05:31 -07:00