Whamcloud - gitweb
LU-9491 llite: Handle multi-vec append write correctly 86/27086/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 12 May 2017 17:13:00 +0000 (13:13 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 May 2017 18:44:13 +0000 (18:44 +0000)
commit6352eb778d032d99e2a87e4d8b3a5562b585e752
treeca1c4e19ff87d960180bf042a0e872e1b204f536
parent10283bfb35cff9980fc7a3f83f39007a22b21d0c
LU-9491 llite: Handle multi-vec append write correctly

http://review.whamcloud.com/20256 cleaned up LLITE code by using
iov_iter for old and new kernels. However, it introduced a bug to
append write with multiple iovec buffers where each buffer was written
separately therefore each of them saw the same file size.

Append write with multiple buffers has to be performed atomically.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I89d59e924c7029fedc096d724a946763c7f7006d
Reviewed-on: https://review.whamcloud.com/27086
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_internal.h
lustre/tests/sanity.sh