Whamcloud - gitweb
LU-1972 mdt: declare RPC handlers in a sane way
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 12 Oct 2012 02:02:48 +0000 (20:02 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Oct 2012 23:27:47 +0000 (19:27 -0400)
commit9c6c262ffd6ba46e666586cd492749ec9c063a71
tree7a387cd35b65a07a78294840fe4548efb868f1d1
parentda96484610ce5215a31ce06f0da9b24ed6ad4f55
LU-1972 mdt: declare RPC handlers in a sane way

Declare the MDT RPC handlers in a way that they can be found when
searching for them, otherwise the code is completely opaque when
looking for the handler for an RPC (e.g. MDS_CLOSE or LDLM_ENQUEUE).

While it might make sense to have macros replace a lot of repetetive
code blocks, it doesn't make sense to chop up the RPC names so badly
that they can never be found through normal searching.  Rename the
RPC handler definition macros to have more meaningful names, and
remove unused macros and special cases where not strictly necessary.

Rename a few OBD_FAIL_LDLM_ error injection hooks instead of making
the macros more complex for a small number of use cases.  These names
are only used internally, even if the values are used in the tests.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I8d4dc0709faeae4458c3563864268a00f8500c1e
Reviewed-on: http://review.whamcloud.com/4260
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/ldlm/ldlm_lockd.c
lustre/mdc/mdc_reint.c
lustre/mdt/mdt_handler.c
lustre/ost/ost_handler.c
lustre/tests/conf-sanity.sh
lustre/tests/replay-dual.sh
lustre/tests/replay-single.sh
lustre/tests/test-framework.sh