Skip to content

OpenOptions in blocking mod is a time-consuming operation.#359

Merged
mxpv merged 1 commit intocontainerd:mainfrom
jokemanfire:io
Jan 9, 2025
Merged

OpenOptions in blocking mod is a time-consuming operation.#359
mxpv merged 1 commit intocontainerd:mainfrom
jokemanfire:io

Conversation

@jokemanfire
Copy link
Member

@jokemanfire jokemanfire commented Jan 8, 2025

Prevent it from blocking a tokio thread. Change sync to async.
And fix an error in Pipe struct.

@github-actions github-actions bot added C-runc-shim Runc shim C-runc runc helper labels Jan 8, 2025
@github-actions github-actions bot removed the C-runc-shim Runc shim label Jan 8, 2025
@jokemanfire jokemanfire force-pushed the io branch 2 times, most recently from 09d88aa to 7257a45 Compare January 8, 2025 08:02
@mxpv
Copy link
Member

mxpv commented Jan 8, 2025

Overall looks good! I have one minor comment.

1.Prevent it from blocking a tokio thread. Change sync to async.
2.Add pipe unit test which I found error in Pipe new.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
@mxpv mxpv added this pull request to the merge queue Jan 9, 2025
Merged via the queue into containerd:main with commit a345bac Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-runc runc helper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants