-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fs/aio: rework lio_listio() and fix AIO crashes and POSIX conformance #20107
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3d96f12
fs/aio: move lio_listio() to fs/aio
xiaoxiang781216 94fcf0e
fs/aio: rework lio_listio() with a lock-protected request list
xiaoxiang781216 0cb3b51
fs/aio: guard against all-NULL aiocb lists in lio_listio()
xiaoxiang781216 1ef100d
fs/aio: skip lio_link teardown for failed submissions in LIO_WAIT mode
xiaoxiang781216 d26dbca
aio: make the lio_listio() prototype match POSIX
xiaoxiang781216 fdf589b
fs/aio: add configurable AIO_LISTIO_MAX limit
xiaoxiang781216 ca18d5b
fs/aio: fix aioc use-after-free and aio_cancel() issues
xiaoxiang781216 db21559
fs/aio: fix aio_read/aio_write return values per POSIX
xiaoxiang781216 44a8653
libc/aio: loop in aio_suspend() until a listed request completes
xiaoxiang781216 11b13a3
fs/aio: initialize lio_link in aio_fsync()
xiaoxiang781216 6e85c94
fs/aio: add internal aio_read/aio_write to avoid lio_link overwrite
xiaoxiang781216 f4eb354
fs/aio: use list_clear_node() to mark non-batch requests
xiaoxiang781216 3d305cf
fs/aio: raise the default AIO_LISTIO_MAX so LTP keeps passing
xiaoxiang781216 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,7 @@ if(CONFIG_FS_AIO) | |
| aio_queue.c | ||
| aio_read.c | ||
| aio_signal.c | ||
| aio_write.c) | ||
| aio_write.c | ||
| lio_listio.c) | ||
|
|
||
| endif() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.