Whamcloud - gitweb
LU-2145 server: use unified request handler for MGS 26/4826/15
authorMikhail Pershin <tappro@whamcloud.com>
Thu, 13 Dec 2012 18:07:52 +0000 (22:07 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Jul 2013 04:24:27 +0000 (04:24 +0000)
commit93a6346f8b73f68cb5bc02a3c826ac0e5b4c236e
tree71516282220048613e76d9ede470d78e70191204
parent9b1526b9431eb8687bc09306d3f440e7eda2aedf
LU-2145 server: use unified request handler for MGS

- Unify request handler. It finds target for particular request and
  calls appropriate handler for it. Generic handlers are moved to
  the unified target code. The tgt_session_info is introduced to
  store all request-related data and passed to all handlers.
- Pack reply in llog server functions early and use err_serious()
- remove obsoleted llog_origin_handle_cancel(), it is not used
  anymore
- remove push_ctxt/pop_ctxt from llog server function, it is based
  on OSD now.

Change-Id: Idded90d8112bcab74de9a58e7885fa17dd3340b8
Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Reviewed-on: http://review.whamcloud.com/4826
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
22 files changed:
lustre/include/lu_target.h
lustre/include/lustre_mdt.h
lustre/include/lustre_net.h
lustre/include/lustre_req_layout.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lockd.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mgs/lproc_mgs.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/mgs/mgs_nids.c
lustre/ofd/ofd_dev.c
lustre/ost/ost_handler.c
lustre/ptlrpc/Makefile.in
lustre/ptlrpc/layout.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/target/Makefile.am
lustre/target/tgt_handler.c [new file with mode: 0644]
lustre/target/tgt_internal.h
lustre/target/tgt_main.c