Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluestore,NVMEDEVICE: fix the I/O logic for READ
Aio_submit will submit both aio_read/write, and also there are synchronized read and random read, so we need to handle the read I/O completion in a correct way. Since random read has its own ioc, so the num_reading for ioc will be at most 1, which will be easy to handle in io_complete. And we need only to differentiate whethere it is an aio_read. Also fix the exception logic in command send, make the style consistent. Signed-off-by: optimistyzy <optimistyzy@gmail.com>
- Loading branch information
1 parent
2beb4ee
commit cdf40c7
Showing
1 changed file
with
28 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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