Whamcloud - gitweb
LU-12034 obdclass: put all service's env on the list 66/34566/17
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 3 Apr 2019 08:29:06 +0000 (11:29 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 1 Jun 2019 03:54:38 +0000 (03:54 +0000)
commitaa82cc83612dbd4c7d05fc101b98e8660f1373db
treedef920d264ba42bbe104b4224ae55b92c795d82f
parent6733fbff9a682bcec5fdca6f7062c24f0fe27cfe
LU-12034 obdclass: put all service's env on the list

to be able to lookup by current thread where it's too
complicated to pass env by argument.

this version has stats to see slow/fast lookups. so, in sanity-benchmark
there were 172850 fast lookups (from per-cpu cache) and 27228 slow lookups
(from rhashtable). going to see the ration in autotest's reports.

Fixes: 2339e1b3b690 ("LU-11483 ldlm ofd_lvbo_init() and mdt_lvbo_fill() create env")
Fixes: e02cb40761ff ("LU-11164 ldlm: pass env to lvbo methods")

Change-Id: Ia760e10fa5c68e7a18284e4726d215b330fc0eed
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34566
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
19 files changed:
lustre/include/lu_object.h
lustre/include/lustre_dlm.h
lustre/include/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/mdt/mdt_lvb.c
lustre/obdclass/lu_object.c
lustre/obdecho/echo_client.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_io.c
lustre/ofd/ofd_lvb.c
lustre/ofd/ofd_obd.c
lustre/ptlrpc/client.c
lustre/ptlrpc/service.c
lustre/quota/qmt_lock.c