diff options
| author | Daniel Stodden <[email protected]> | 2010-04-30 22:01:19 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2010-08-07 18:38:43 +0200 |
| commit | b70f5fa043b318659c936d8c3c696250e6528944 (patch) | |
| tree | ca627bca1a32250206d0af888b2c9e98a7a3c4ef /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| 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 <[email protected]>
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions