Whamcloud - gitweb
LU-2598 tests: check nr_local in ofd_preprw()
authorJian Yu <jian.yu@intel.com>
Mon, 20 May 2013 05:33:58 +0000 (13:33 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 24 May 2013 19:36:48 +0000 (15:36 -0400)
commitfd7466439be3039cb27f723c57be73317b5e48ba
tree00c24d629ce2ab49f263c054c37a4462bc5ccd88
parent5a3610b711efff16cd14a098aa20f87a7055ba1a
LU-2598 tests: check nr_local in ofd_preprw()

This patch checks the number of bulk I/O RPC pages with
PTLRPC_MAX_BRW_PAGES in ofd_preprw() to avoid
LASSERT(iobuf->dr_npages < iobuf->dr_max_pages) occurring
while larger I/O size is specified.

The patch also fixes echo_client_prep_commit() to reuse
the env context so as to avoid LASSERT(info->fti_exp == NULL)
occurring while the bulk I/O size is larger than
PTLRPC_MAX_BRW_SIZE.

The patch also improves obdfilter-survey to handle the
case while interoprating with old server.

Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \
testlist=obdfilter-survey

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Ifa7b720da1e3fc752f85bcfa6968eb16f93af2fa
Reviewed-on: http://review.whamcloud.com/6394
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre-iokit/obdfilter-survey/obdfilter-survey
lustre/obdecho/echo_client.c
lustre/ofd/ofd_io.c
lustre/tests/sanity.sh