Skip to content

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