Whamcloud - gitweb
LU-10903 obdecho: use OBD_ALLOC_LARGE for lnb 64/31964/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 11 Apr 2018 18:13:34 +0000 (12:13 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 May 2018 02:24:03 +0000 (02:24 +0000)
commit8878bab7ae5f9f03b61f7a869e79bba273695131
treeb494e357605223f88d2b0a4a2bb5dd19ad9eb6e2
parent457e36a2993fcefe18c571ff5b798e3ab4aec81a
LU-10903 obdecho: use OBD_ALLOC_LARGE for lnb

When allocating the niobuf_local, if there are a large number of
(potential) fragments this allocation can be quite large.  Use
OBD_ALLOC_LARGE(lnb) and OBD_FREE_LARGE(lnb) to avoid allocation
errors and console noise.  This was causing sanity test_180c to
fail in a VM on occasion, and could also be problem in real use.

Tidy up test_180[abc] to use stack_trap to handle echo device
cleanup rather than having a series of conditional checks.
Use "error" to report errors rather than error numbers.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ib0e721f58fc0a62acca29b31fb4dfac5021cab07
Reviewed-on: https://review.whamcloud.com/31964
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdecho/echo_client.c
lustre/tests/sanity.sh