Skip to content

block: Retry locking when interrupted by EINTR#171

Merged
phip1611 merged 1 commit into
cyberus-technology:gardenlinuxfrom
scholzp:gardenlinux_retry_advisory_lock
Jun 18, 2026
Merged

block: Retry locking when interrupted by EINTR#171
phip1611 merged 1 commit into
cyberus-technology:gardenlinuxfrom
scholzp:gardenlinux_retry_advisory_lock

Conversation

@scholzp

@scholzp scholzp commented Jun 17, 2026

Copy link
Copy Markdown

We observed that setting image advisory locks can fail if we receive an EINTR while doing so.

We retry acquiring the lock in case of EINT to recover from it instead of aborting with an error.

This is a backport of cloud-hypervisor#8402

@scholzp scholzp requested review from amphi and phip1611 June 17, 2026 12:56

@phip1611 phip1611 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tremendous PR!

Acquiring an image lock can be interrupted with EINTR. In this case, we
returned with an error. Instead, we now retry acquiring the lock.

Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de>
On-behalf-of: SAP pascal.scholz@sap.com
@phip1611 phip1611 force-pushed the gardenlinux_retry_advisory_lock branch from fb2eb11 to ff759cd Compare June 18, 2026 07:02
@phip1611 phip1611 enabled auto-merge (rebase) June 18, 2026 07:02
@phip1611 phip1611 merged commit 598ec8b into cyberus-technology:gardenlinux Jun 18, 2026
19 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.

4 participants