staging: lustre: llite: restart short read/write for normal IO
authorBobi Jam <bobijam.xu@intel.com>
Thu, 27 Oct 2016 22:11:37 +0000 (18:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2016 14:56:15 +0000 (10:56 -0400)
commit623f55c45109e7f802812bff3ecc09d81fd4d0c2
treea41ab9394ff129ff54b5abc3edb4ffbc8df77ab5
parent330e2a0f5f9e7410d0937ed35ac34284da17f2e8
staging: lustre: llite: restart short read/write for normal IO

If normal IO got short read/write, we'd restart the IO from where
we've accomplished until we meet EOF or error happens.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6389
Reviewed-on: http://review.whamcloud.com/14123
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/fail.c
drivers/staging/lustre/lustre/include/obd_support.h
drivers/staging/lustre/lustre/llite/file.c
drivers/staging/lustre/lustre/llite/vvp_io.c