OSDN Git Service

CIFS: Add support for direct I/O read
authorLong Li <longli@microsoft.com>
Wed, 31 Oct 2018 22:13:09 +0000 (22:13 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Nov 2018 19:09:41 +0000 (14:09 -0500)
commit6e6e2b86c29c6fcfa16ad9fdc7ea32027bea5d73
tree1c1c63c0f8191fe88291fe6de8acd341e68bc608
parent0df444a00f32a3ab4d37c3c101bb960ee38a9617
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>
fs/cifs/cifsfs.h
fs/cifs/cifsglob.h
fs/cifs/file.c