Whamcloud - gitweb
LU-181 ptlrpc: reorganize ptlrpc_request 06/8806/16
authorLiang Zhen <liang.zhen@intel.com>
Sun, 5 Jan 2014 15:00:26 +0000 (23:00 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 11 Nov 2014 17:18:42 +0000 (17:18 +0000)
commit2ec741f46ac31cb566ea17d8ffda122398896102
tree8303f1f3eea54f483959559462e2f54203b17b5e
parent88fe67803334531c848c2a3771d1c6ac412227db
LU-181 ptlrpc: reorganize ptlrpc_request

ptlrpc_request has some structure members are only for client side,
and some others are only for server side, this patch moved these
members to different structure then putting into an union.

By doing this, size of ptlrpc_request is decreased about 300 bytes,
besides saving memory, it also can reduce memory footprint while
processing.

Another change in this patch is, osp will not use rq_exp_list anymore
because it is a server only member now.
osp will use ptlrpc_req_async_args to store commit_cb parameters in
this patch.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: Id910ac225b8e9d33a0cae40b3124ce55f1a3fbc9
Reviewed-on: http://review.whamcloud.com/8806
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/osp/osp_sync.c
lustre/ptlrpc/client.c
lustre/ptlrpc/events.c
lustre/ptlrpc/niobuf.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/sec.c