diff options
author | Daniel Stodden <daniel.stodden@citrix.com> | 2010-04-30 22:01:19 +0000 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 18:38:43 +0200 |
commit | b70f5fa043b318659c936d8c3c696250e6528944 (patch) | |
tree | ca627bca1a32250206d0af888b2c9e98a7a3c4ef /drivers/uwb/allocator.c | |
parent | a66b5aebb7dc9e695dcb4b528906fd398b63f3d9 (diff) |
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>
Diffstat (limited to 'drivers/uwb/allocator.c')
0 files changed, 0 insertions, 0 deletions