diff options
author | 2016-06-20 16:55:24 -0400 | |
---|---|---|
committer | 2016-06-20 14:28:39 -0700 | |
commit | 1b02bde3bce415a4c0541b911e6d9b3d98a80740 (patch) | |
tree | 75289555262d13f5ba6c3b42ed919c4053d4dee1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: lustre: remove remote client support (diff) | |
download | linux-dev-1b02bde3bce415a4c0541b911e6d9b3d98a80740.tar.xz linux-dev-1b02bde3bce415a4c0541b911e6d9b3d98a80740.zip |
staging/lustre/llite: allocate and free client cache asynchronously
Since the inflight request holds import refcount as well as export,
sometimes obd_disconnect() in client_common_put_super() can't put
the last refcount of OSC import (e.g. due to network disconnection),
this will cause cl_cache being accessed after free.
To fix this issue, ccc_users is used as cl_cache refcount, and
lov/llite/osc all hold one cl_cache refcount respectively, to avoid
the race that a new OST is being added into the system when the client
is mounted.
The following cl_cache functions are added:
- cl_cache_init(): allocate and initialize cl_cache
- cl_cache_incref(): increase cl_cache refcount
- cl_cache_decref(): decrease cl_cache refcount and free the cache
if refcount=0.
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-on: http://review.whamcloud.com/13746
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6173
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions