Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-388210: enable SMAPIv3 concurrent operations by default #6141

Merged
merged 4 commits into from
Dec 2, 2024

Conversation

edwintorok
Copy link
Contributor

See #6140 on feature/perf, this is the equivalent PR for master.

We are going to change how we compute it, so factor it out into a function.

No functional change.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
…ument as domain for Dom0

Dom0 allows multiple attaches of RO disks, used e.g. for VDI.copy.
Send a unique value to SMAPIv3 plugins to avoid bugs to the lack of reference counting in those plugins.

XAPI already sends a unique value here, either vbd/domid/device, or a fresh UUID (for storage migration).

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
Log PID on successful and failed operations, and log full cmdline for newly spawned processes.

This can be used to debug stuck scripts, so that we know which invocation is the one that is stuck.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
It is believed that the deadlocks in SMAPIv3 were caused by VDI.copy operations that attach
the same disk RO multiple times in Dom0.
With the previous commits we now use a unique identifier and spawn a separate qemu-dp process
in the SMAPIv3 plugins, which should prevent the deadlocks and IO errors due to lack of refcounting.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok changed the title Enable/master/ca 388210 CA-388210: enable SMAPIv3 concurrent operations by default Nov 29, 2024
@edwintorok edwintorok added this pull request to the merge queue Dec 2, 2024
@edwintorok
Copy link
Contributor Author

edwintorok commented Dec 2, 2024

Testing looks good so far (Storage BST)

Merged via the queue into xapi-project:master with commit 4e3fd42 Dec 2, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants