Whamcloud - gitweb
LU-12275 osd: make osd layer always send complete pages 38/36238/7
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 19 Sep 2019 17:24:49 +0000 (19:24 +0200)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:07:17 +0000 (01:07 +0000)
commit7b136af8f46024fd48a773e5a79b817bca05d9e8
tree627dc31439588599b502d841873ef77e39d18fb4
parentdb9f9543ecb396c5187368811132411a80485174
LU-12275 osd: make osd layer always send complete pages

In osd layer, instead of looking if we go beyong isize, just make sure
we send complete pages all the time.
Data in page beyond isize will be discared by client anyway, and it
should not be harmful to send at max PAGE_SIZE-1 more bytes for reads
at end of file.

With this new paradigm, we need to remove sanity test_246, as its sole
purpose is to actually make sure we do not send more than isize bytes
to the client.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I03dc6037a8dfa1d40d40a4b1f675e047d862d933
Reviewed-on: https://review.whamcloud.com/36238
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/include/obd_support.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-zfs/osd_io.c
lustre/target/tgt_handler.c
lustre/tests/sanity.sh