Whamcloud - gitweb
LU-14138 ptlrpc: move more members in PTLRPC request into pill
authorQian Yingjin <qian@ddn.com>
Tue, 17 Nov 2020 15:12:44 +0000 (23:12 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Jan 2022 07:03:17 +0000 (07:03 +0000)
commitebe9d5a8aa05172f53cae1f8cbfe4993a6ac3e16
tree1b7e6e8ad04377fe85811a38dfe5e4ff825430a3
parentca22df652659e2db1ee6aa1ba8a24f7a662a9250
LU-14138 ptlrpc: move more members in PTLRPC request into pill

Some data members in the data structure @ptlrpc_request can be
moved into the data structure @rep_capsule:
/** Request message - what client sent */
struct lustre_msg *rq_reqmsg;
/** Reply message - server response */
struct lustre_msg *rq_repmsg;
/** Fields that help to see if request and reply were swabbed */
__u32 rq_req_swab_mask;
__u32 rq_rep_swab_mask;

After these data structures are reconstructed, @rep_capsule can
be more common used and it makes pack and unpack sub requests
in a batch PtlRPC request for the coming batch metadata processing
more easily.

Lustre-change: https://review.whamcloud.com/40669
Lustre-commit: f75d2a1fc9b17b384bbcbc13bcb80ba10412cf29

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Ib6d942b79ebf1a444d63b55ad4bc94813cf947c7
Reviewed-on: https://review.whamcloud.com/46029
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
35 files changed:
lustre/include/lustre_net.h
lustre/include/lustre_req_layout.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/llite/dcache.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_nfs.c
lustre/llite/namei.c
lustre/llite/statahead.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_acl.c
lustre/mdc/mdc_dev.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mgc/mgc_request.c
lustre/osp/osp_md_object.c
lustre/osp/osp_object.c
lustre/ptlrpc/gss/gss_cli_upcall.c
lustre/ptlrpc/gss/sec_gss.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/sec.c
lustre/ptlrpc/sec_plain.c
lustre/quota/qsd_lock.c
lustre/quota/qsd_request.c
lustre/target/out_handler.c