Skip to content

Revert "IoUring: Remove delayed close logic as its not needed (#14540)"#14665

Merged
normanmaurer merged 1 commit into
4.2from
delayed_close
Jan 14, 2025
Merged

Revert "IoUring: Remove delayed close logic as its not needed (#14540)"#14665
normanmaurer merged 1 commit into
4.2from
delayed_close

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

This reverts commit ed3566c and slightly changes it a bit to ensure write error handlings also take account delayed close

Modifications:

  • Revert ed3566c
  • Correctly handle delayed close for write errors

Result:

No more problems of tearing down the pipeline before all read / write completions are observed

@normanmaurer
Copy link
Copy Markdown
Member Author

So it turns out I was wrong by removing this before after talking to @axboe. This also fixes a bug which did not correctly handle the delaying of close for write errors.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

notify was always false

@normanmaurer
Copy link
Copy Markdown
Member Author

Before this change I typically did see buffers that were delivered after the pipeline was teared down during benchmarks

Motivation:

This reverts commit ed3566c and slightly changes it a bit to ensure write error handlings also take account delayed close

Modifications:

- Revert ed3566c
- Correctly handle delayed close for write errors

Result:

No more problems of tearing down the pipeline before all read / write completions are observed
@normanmaurer normanmaurer added this to the 4.2.0.RC2 milestone Jan 14, 2025
@normanmaurer normanmaurer merged commit f390662 into 4.2 Jan 14, 2025
@normanmaurer normanmaurer deleted the delayed_close branch January 14, 2025 21:10
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.

2 participants