Whamcloud - gitweb
LU-10227 ptlrpc: simplify struct ptlrpc_request_set 60/30060/3
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 10 Nov 2017 20:03:30 +0000 (14:03 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:20:01 +0000 (06:20 +0000)
commit5ec31bee525883e9d197d3707dc4f218de8557d0
treed408e4246612d8372a97410923a40307b98d8e92
parentfb73c2ae38716ba026baec64c56f15602b91ca6e
LU-10227 ptlrpc: simplify struct ptlrpc_request_set

Remove obd_statfs_rqset(), replacing its only use with
obd_statfs(). Collapse lov_statfs_async() and lov_statfs() into a
single function, removing the need for lov_statfs_interpret().

Remove the then unused set_wakeup_ptr, set_cblist, set_interpret, and
set_arg members of struct ptlrpc_request_set. Remove struct
ptlrpc_set_cbdata and ptlrpc_set_add_cb(). On x86_64 this reduces the
size of struct ptlrpc_request_set from 152 bytes to 112.

Add sanity test_118n() to ensure that OST_STATFS requests are still
async.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Iec8aa378157367f03de96f82d67158b281ec374c
Reviewed-on: https://review.whamcloud.com/30060
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_net.h
lustre/include/obd_class.h
lustre/include/obd_support.h
lustre/llite/llite_lib.c
lustre/lov/lov_obd.c
lustre/ofd/ofd_dev.c
lustre/ptlrpc/client.c
lustre/tests/sanity.sh