[LU-17473] fix and tests for partially successful AIO Created: 26/Jan/24  Updated: 26/Jan/24

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Patrick Farrell Assignee: Patrick Farrell
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Two patches for AIO fixes were filed under LU-13805 since I discovered the issue while working on that, but they're not actually related.

llite: wait for partially successful aio 
https://review.whamcloud.com/50966/
tests: add racing tests of aio 
https://review.whamcloud.com/50577/

Here's the problem/patch description:
For various reasons (notably conflicting buffered IO), we may need to fall back from DIO to buffered IO. This also affects AIO, and if it happens, we will sometimes submit only part of an AIO with the AIO path, completing the rest with the buffered path. Userspace doesn't expect this, expecting us to either do all or none of the IO with AIO, so it doesn't wait for completion in this case. To meet this expectation, we must recognize this case and wait for AIO to complete before returning to userspace.


Generated at Sat Feb 10 03:35:44 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.