CIFS: Add support for direct I/O write
authorLong Li <longli@microsoft.com>
Wed, 31 Oct 2018 22:13:10 +0000 (22:13 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Nov 2018 19:09:42 +0000 (14:09 -0500)
commit8c5f9c1ab7cb45f6584ce312b14fb310a8fa28f3
tree04d1492038748e64e95f13c295aaf0f338f6af3e
parent6e6e2b86c29c6fcfa16ad9fdc7ea32027bea5d73
CIFS: Add support for direct I/O write

With direct I/O write, user supplied buffers are pinned to the memory and data
are transferred directly from user buffers to the transport layer.

Change in v3: add support for kernel AIO

Change in v4:
Refactor common write code to __cifs_writev 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/file.c