aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lnet/libcfs
diff options
context:
space:
mode:
authorBobi Jam <bobijam.xu@intel.com>2016-10-27 18:11:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-30 10:56:15 -0400
commit623f55c45109e7f802812bff3ecc09d81fd4d0c2 (patch)
treea41ab9394ff129ff54b5abc3edb4ffbc8df77ab5 /drivers/staging/lustre/lnet/libcfs
parentstaging: lustre: llite: remove IS_ERR(master_inode) check (diff)
downloadlinux-dev-623f55c45109e7f802812bff3ecc09d81fd4d0c2.tar.xz
linux-dev-623f55c45109e7f802812bff3ecc09d81fd4d0c2.zip
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>
Diffstat (limited to 'drivers/staging/lustre/lnet/libcfs')
-rw-r--r--drivers/staging/lustre/lnet/libcfs/fail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/lustre/lnet/libcfs/fail.c b/drivers/staging/lustre/lnet/libcfs/fail.c
index e4b1a0a86eae..3a9c8ddeff50 100644
--- a/drivers/staging/lustre/lnet/libcfs/fail.c
+++ b/drivers/staging/lustre/lnet/libcfs/fail.c
@@ -113,6 +113,7 @@ int __cfs_fail_check_set(__u32 id, __u32 value, int set)
break;
case CFS_FAIL_LOC_RESET:
cfs_fail_loc = value;
+ atomic_set(&cfs_fail_count, 0);
break;
default:
LASSERTF(0, "called with bad set %u\n", set);