Whamcloud - gitweb
LU-2598 tests: check npages in filter_preprw()
authorJian Yu <jian.yu@intel.com>
Thu, 14 Mar 2013 11:26:39 +0000 (19:26 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 18 Mar 2013 04:57:58 +0000 (00:57 -0400)
commit25170d2c786f3b7aebda83b50791abf9b42ba358
treed5c135af9545164baf97d0c5323920201e7ef729
parentc7d48fba577f4fb318ad23e7b07bd28846c7eeeb
LU-2598 tests: check npages in filter_preprw()

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

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I1b85866045d753359c420ed9dfd8703eec14f18e
Reviewed-on: http://review.whamcloud.com/5715
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
lustre/obdfilter/filter_io.c
lustre/tests/sanity.sh