Whamcloud - gitweb
LU-12034 obdclass: put all service's env on the list 10/35110/14
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 3 Apr 2019 08:29:06 +0000 (11:29 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Jun 2019 02:20:11 +0000 (02:20 +0000)
commitfce8d80624fd728f5e2d98e039218ac020253675
tree4ddf30822dc99464819d2a78a86524cba991cf8d
parent4ea7e9be65987441602b986f54bee14816cae52f
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")

Lustre-change: https://review.whamcloud.com/34566
Lustre-commit: aa82cc83612dbd4c7d05fc101b98e8660f1373db

Change-Id: Ia760e10fa5c68e7a18284e4726d215b330fc0eed
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35110
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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