Whamcloud - gitweb
LU-14935 tests: Use FAIL_CHECK_QUIET for fake i/o 51/44651/4
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 12 Aug 2021 20:28:29 +0000 (16:28 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Jan 2022 01:32:04 +0000 (01:32 +0000)
commit890466a32d3e8683a96d5a18e76c0cc704810f5f
treef16388badaf19949c19bd1b0296feb916e6bcd4e
parent6eb5d3ae4aaab1662afc8ae50f56b0a0eaa6556a
LU-14935 tests: Use FAIL_CHECK_QUIET for fake i/o

Logging to the console is relatively expensive and doing it
for fake i/o is very expensive in terms of CPU time.

If we use FAIL_CHECK_QUIET, a debug message is logged only once
to the console, and the rest at D_INFO level (probably not at all).

This should hugely reduce the CPU cost of the debugging.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I46a5042efd116a4f5c80eaf0d5dae7fe132f6a79
Reviewed-on: https://review.whamcloud.com/44651
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
libcfs/include/libcfs/libcfs_fail.h
lustre/include/obd_support.h
lustre/ofd/ofd_io.c
lustre/osd-ldiskfs/osd_io.c