|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 01 of 10] xenbus: Make xenbus_switch_state transactio
According to the comments, this was how it's been done years ago, but
apparently took an xbt pointer from elsewhere back then. The code was
removed because of consistency issues: cancellation wont't roll back
the saved xbdev->state.
Still, unsolicited writes to the state field remain an issue,
especially if device shutdown takes thread synchronization, and subtle
races cause accidental recreation of the device node.
Fixed by reintroducing the transaction. An internal one is sufficient,
so the xbdev->state value remains consistent.
Also fixes the original hack to prevent infinite recursion. Instead of
bailing out on the first attempt to switch to Closing, checks call
depth now.
Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
xenbus-switch-transaction.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
|
|
|
|
|