Whamcloud - gitweb
LU-17482 llite: short read could mess up next read offset 27/53827/3
authorBobi Jam <bobijam@whamcloud.com>
Fri, 26 Jan 2024 10:06:50 +0000 (18:06 +0800)
committerBobi Jam <bobijam@whamcloud.com>
Wed, 31 Jan 2024 05:33:49 +0000 (13:33 +0800)
commit4bec3a277c83932cfb5ba26e31336e1f4666460a
treeab567cccaabe7496c3b4845cd9c2157d66f189c9
parentc265e1c7b045bf1f9e5b2919c282b63086929ab6
LU-17482 llite: short read could mess up next read offset

When read reaches EOF, it could read data from stale pagecache, but
we need to restore the iocb->ki_pos so that next read could continue
from the correct offset.

Fixes: 4468f6c9d9 ("LU-16025 llite: adjust read count as file got truncated")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ib8b62c41bf65f8efec82dda53fcfbdb68ad08b38
lustre/include/obd_support.h
lustre/llite/file.c
lustre/tests/multiop.c
lustre/tests/sanity.sh