[lustre-devel] [PATCH 09/14] lustre: llite: return correct amount of bytes for short operations
James Simmons
jsimmons at infradead.org
Sun Jan 6 13:36:42 PST 2019
The incorrect number of bytes processed by ll_file_io_generic() is
returned. We need to add io->ci_nob to result.
Fixes: 623f55c4510 ("staging: lustre: llite: restart short read/write for normal IO")
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
drivers/staging/lustre/lustre/llite/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 5c6ebfa..b390971 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -1195,7 +1195,7 @@ static void ll_io_init(struct cl_io *io, const struct file *file, int write)
}
if (io->ci_nob > 0) {
- result = io->ci_nob;
+ result += io->ci_nob;
count -= io->ci_nob;
*ppos = io->u.ci_wr.wr.crw_pos;
--
1.8.3.1
More information about the lustre-devel
mailing list