]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: Implement writev/pwritev for sync operation.
authormajianpeng <majianpeng@gmail.com>
Thu, 12 Sep 2013 05:54:26 +0000 (13:54 +0800)
committerSage Weil <sage@inktank.com>
Fri, 13 Dec 2013 17:13:17 +0000 (09:13 -0800)
commit9cd306b591e6dc74222480ddc01a241fea4ce2fb
treef0ea6b254a90b29a8041b95464351a2976625cef
parentf3d72dad9e2e8affe505c8b4bd478798f21def54
ceph: Implement writev/pwritev for sync operation.

For writev/pwritev sync-operatoin, ceph only do the first iov.

I divided the write-sync-operation into two functions. One for
direct-write, other for none-direct-sync-write. This is because for
none-direct-sync-write we can merge iovs to one. But for direct-write,
we can't merge iovs.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/file.c