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

udiskslinuxblockobject: Try issuing BLKRRPART ioctl harder #1218

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

tbzatek
Copy link
Member

@tbzatek tbzatek commented Nov 14, 2023

For some reason even after acquiring a voluntary BSD lock on the device the BLKRRPART ioctl still fails with EBUSY. Wait a couple of msec and everything is fine.

So try harder, several attempts, if busy. There might be number of things going on in the system and it's out of our control even when holding a lock.

Fixes #1204

For some reason even after acquiring a voluntary BSD lock on
the device the BLKRRPART ioctl still fails with EBUSY. Wait
a couple of msec and everything is fine.

So try harder, several attempts, if busy. There might be number
of things going on in the system and it's out of our control
even when holding a lock.
@tbzatek
Copy link
Member Author

tbzatek commented Nov 14, 2023

Jenkins, test this please.

Copy link
Member

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@tbzatek tbzatek merged commit 5dc94be into master Nov 16, 2023
16 of 18 checks passed
@mvollmer
Copy link
Contributor

Just for the record, we have seen this as well in the Cockpit tests: cockpit-project/cockpit#19574

Thanks for doing the retry on your level already!

@tbzatek
Copy link
Member Author

tbzatek commented Dec 11, 2023

Thanks for doing the retry on your level already!

Later I realized it might have been some other UDisks thread that kept the device busy. We might perhaps need a global per-device lock... will see about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants