forked from xapi-project/sm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-397084: SR scan tries to deactivate LV in use by tapdisk
Back when this code was written we didn't have leaf coalesce doing snapshot coalesace operations, and so for performance reasons the scan code didn't reference count LVs that it activated on the assuption that nothing else would be in a position to start using the LV in the meantime. This assumption is no longer valid and induces scan failures when a new VDI is detected and the scan tries to deactivate it whilst it is open and in use by tapdisk. Move the scan code to use the lvactivator so that reference counts will be taken and honoured. Additionally, it's possible that more than one VDI might appear so don't treat this as a singular event and track all VDIs that might have been activated and dereference them at the end. Signed-off-by: Mark Syms <[email protected]>
- Loading branch information
1 parent
bc27747
commit 0354246
Showing
2 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters