Skip to content

[release/1.7] Use LOOP_CONFIGURE when creating loop devices#10209

Merged
dmcgowan merged 3 commits intocontainerd:release/1.7from
austinvazquez:cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7
May 16, 2024
Merged

[release/1.7] Use LOOP_CONFIGURE when creating loop devices#10209
dmcgowan merged 3 commits intocontainerd:release/1.7from
austinvazquez:cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7

Conversation

@austinvazquez
Copy link
Copy Markdown
Member

@austinvazquez austinvazquez commented May 10, 2024

Issue

Optimization for creating loop devices on kernels >= 5.8 would be nice to have in release/1.7.

Description

This change backports #9211 and follow on changes #9805, #9813 to release/1.7.

Signed-off-by: Austin Vazquez [email protected]

@k8s-ci-robot
Copy link
Copy Markdown

Hi @austinvazquez. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@austinvazquez austinvazquez force-pushed the cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7 branch from 44c621a to cbc37f5 Compare May 10, 2024 19:36
@austinvazquez
Copy link
Copy Markdown
Member Author

It would be nice to have #10204 first which vendors golang.org/x/[email protected] to match the base of the cherry-picked commit but not a hard requirement.

@austinvazquez austinvazquez marked this pull request as ready for review May 10, 2024 20:33
@austinvazquez austinvazquez force-pushed the cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7 branch from cbc37f5 to c8e8844 Compare May 13, 2024 13:27
LOOP_CONFIGURE is a new ioctl that is a lot faster than
the LOOP_SET_FD+LOOP_SET_STATUS64 calls

Signed-off-by: Alexandru Matei <[email protected]>
(cherry picked from commit a782fd6)
Signed-off-by: Austin Vazquez <[email protected]>
Replace internal LOOP_CONFIGURE ioctl implementation with
IoctlLoopConfigure from sys

Signed-off-by: Alexandru Matei <[email protected]>
(cherry picked from commit c2dfae8)
Signed-off-by: Austin Vazquez <[email protected]>
The struct is now part of golang.org/x/sys.
Follow-up for containerd#9805

Signed-off-by: Alexandru Matei <[email protected]>
(cherry picked from commit ccec1e6)
Signed-off-by: Austin Vazquez <[email protected]>
@austinvazquez austinvazquez force-pushed the cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7 branch from c8e8844 to 803aaa6 Compare May 13, 2024 15:22
@austinvazquez
Copy link
Copy Markdown
Member Author

Rebased.

Copy link
Copy Markdown
Member

@kzys kzys left a comment

Choose a reason for hiding this comment

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

/ok-to-test

@dmcgowan dmcgowan merged commit 2441c2d into containerd:release/1.7 May 16, 2024
@austinvazquez austinvazquez deleted the cherry-pick-a782fd6da2fa9fa350ef754b68b5e80261cfeddc-to-release-1.7 branch May 16, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants