|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 05 of 10] 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@xxxxxxxxxx>
blkfront-xenbus-closing.diff
Description: Text Data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 10] blkfront pvops updates, v2, Daniel Stodden
- [Xen-devel] [PATCH 03 of 10] blkfront: Fix gendisk leak, Daniel Stodden
- [Xen-devel] [PATCH 01 of 10] xenbus: Make xenbus_switch_state transactional (again), Daniel Stodden
- [Xen-devel] [PATCH 02 of 10] blkfront: Fix backtrace in del_gendisk, Daniel Stodden
- [Xen-devel] [PATCH 06 of 10] blkfront: Fix blkfront backend switch race (bdev open), Daniel Stodden
- [Xen-devel] [PATCH 04 of 10] blkfront: Clean up vbd release, Daniel Stodden
- [Xen-devel] [PATCH 05 of 10] blkfront: Lock blkfront_info when closing,
Daniel Stodden <=
- [Xen-devel] [PATCH 09 of 10] blkfront: Remove obsolete info->users, Daniel Stodden
- [Xen-devel] [PATCH 07 of 10] blkfront: Fix blkfront backend switch race (bdev release), Daniel Stodden
- [Xen-devel] [PATCH 08 of 10] blkfront: Lock blockfront_info during xbdev removal, Daniel Stodden
- [Xen-devel] [PATCH 10 of 10] blkfront: Klog the unclean release path, Daniel Stodden
- [Xen-devel] Re: [PATCH 00 of 10] blkfront pvops updates, v2, Jeremy Fitzhardinge
|
|
|
|
|