Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=22505 Initialize cui_tot_nregs for liblustre
[fs/lustre-release.git]
/
lustre
/
liblustre
/
rw.c
diff --git
a/lustre/liblustre/rw.c
b/lustre/liblustre/rw.c
index
2b9581e
..
aeff8db
100644
(file)
--- a/
lustre/liblustre/rw.c
+++ b/
lustre/liblustre/rw.c
@@
-344,6
+344,7
@@
ssize_t llu_file_prwv(const struct iovec *iovec, int iovlen,
/* XXX this is not right: cio->cui_iov can be modified. */
cio->cui_iov = (struct iovec *)iovec;
cio->cui_nrsegs = iovlen;
+ cio->cui_tot_nrsegs = iovlen;
sio->sio_session = session;
err = cl_io_loop(env, io);
} else {