From 0c62f03a5d2ffb2452b90bc8026edcf6674775a2 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Wed, 27 Mar 2013 23:20:57 -0400 Subject: [PATCH] LU-3035 clio: improper LASSERT in ll_file_io_generic() This LASSERT was introduced from the fix of LU-2910, and which is incorrect, since the crw_count could be changed in lov_io_rw_iter_init() even if no any read/write done. Signed-off-by: Niu Yawei Change-Id: Ib2cee88f0a7f75f8fb63330912aa053fb5b9393e Reviewed-on: http://review.whamcloud.com/5864 Reviewed-by: Jinshan Xiong Tested-by: Hudson Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/llite/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 14e38cf..bd0e91f 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -926,8 +926,7 @@ out: CDEBUG(D_VFSTRACE, "Restart %s on %s from %lld, count:%zd\n", iot == CIT_READ ? "read" : "write", file->f_dentry->d_name.name, *ppos, count); - LASSERTF(io->u.ci_rw.crw_count == count, "%zd != %zd\n", - io->u.ci_rw.crw_count, count); + LASSERTF(io->ci_nob == 0, "%zd", io->ci_nob); goto restart; } -- 1.8.3.1