Whamcloud - gitweb
LU-3534 osp: move RPC pack from declare to execution phase 94/10794/45
authorWang Di <di.wang@intel.com>
Fri, 20 Jun 2014 12:57:54 +0000 (05:57 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 9 Apr 2015 03:22:50 +0000 (03:22 +0000)
commitde8572645d287d17c409b99dabdf176822d91486
tree6687ba88a77134797b58805e157dfeb5dba6b753
parent3a36f39a86d6b9984edbeb08dbd74bebc3b579ee
LU-3534 osp: move RPC pack from declare to execution phase

1. Since we will have full aysnc update support, i.e. do not
need order update anymore, move RPC pack from declare to
execution phase, and these remote updates will be sent during
transaction stop after local transaction is stopped.

2. Add update callback for each update, so after the update request
is done, these callback will be called correspondently for each
update.

3. Remove tu_sent_after_local_trans, because every remote
transaction will be sent after local transaction is finished, in
lod_trans_stop()->osp_trans_stop(). Note: RPC should be sent after
local transaction is stopped, to avoid sending RPC while holding
transaction.

Change-Id: I296e2eaf8b922fe58fe88df074458545f102a69a
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10794
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
lustre/include/lustre_fid.h
lustre/include/lustre_update.h
lustre/lod/lod_object.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_md_object.c
lustre/osp/osp_object.c
lustre/osp/osp_sync.c
lustre/osp/osp_trans.c
lustre/target/out_lib.c