Skip to content

direct-io: remove IOCB_NOWAIT support#846

Open
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1096347=>linus-master
Open

direct-io: remove IOCB_NOWAIT support#846
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1096347=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 18, 2026

Pull request for series with
subject: direct-io: remove IOCB_NOWAIT support
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1096347

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 18, 2026

Upstream branch: 70eda68
series: https://patchwork.kernel.org/project/linux-block/list/?series=1096347
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 18, 2026

Upstream branch: 70eda68
series: https://patchwork.kernel.org/project/linux-block/list/?series=1096347
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1096347=>linus-master branch from 26ebc97 to 5f7a228 Compare May 18, 2026 10:16
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 18, 2026

Upstream branch: 70eda68
series: https://patchwork.kernel.org/project/linux-block/list/?series=1096347
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1096347=>linus-master branch from 5f7a228 to 22d8c5a Compare May 18, 2026 12:22
Christoph Hellwig added 2 commits May 18, 2026 13:05
None of the file systems using the legacy direct I/O code actually sets
FMODE_NOWAIT, and if they did this would not work, as the write locking
could not handle the retry.  Remove this dead code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Commit abb3046 ("block: mark bio_wouldblock_error() bio with
BIO_QUIET") added this to suppress buffer_head warnings, but neither
when this commit was added nor now any buffer_head using code actually
ever sets REQ_NOWAIT which can lead to BLK_STS_AGAIN.

Remove the special handling for now.  If we ever plan to use REQ_NOWAIT
for buffer_head based I/O we're better off handling BLK_STS_AGAIN in
the completion handler as it actually needs to retry the I/O as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 18, 2026

Upstream branch: 70eda68
series: https://patchwork.kernel.org/project/linux-block/list/?series=1096347
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1096347=>linus-master branch from 22d8c5a to 36d52e8 Compare May 18, 2026 13:05
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.

0 participants