CIFS: Add support for direct I/O read
With direct I/O read, we transfer the data directly from transport layer to the user data buffer. Change in v3: add support for kernel AIO Change in v4: Refactor common read code to __cifs_readv for direct and non-direct I/O. Retry on direct I/O failure. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
@@ -1186,6 +1186,11 @@ struct cifs_aio_ctx {
|
||||
unsigned int len;
|
||||
unsigned int total_len;
|
||||
bool should_dirty;
|
||||
/*
|
||||
* Indicates if this aio_ctx is for direct_io,
|
||||
* If yes, iter is a copy of the user passed iov_iter
|
||||
*/
|
||||
bool direct_io;
|
||||
};
|
||||
|
||||
struct cifs_readdata;
|
||||
|
Reference in New Issue
Block a user