Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-8130 lu_object: use RCU to free lu_object_header
[fs/lustre-release.git]
/
lustre
/
obdclass
/
local_storage.c
diff --git
a/lustre/obdclass/local_storage.c
b/lustre/obdclass/local_storage.c
index
bbb8ada
..
c5d8935
100644
(file)
--- a/
lustre/obdclass/local_storage.c
+++ b/
lustre/obdclass/local_storage.c
@@
-65,7
+65,8
@@
static void ls_object_free(const struct lu_env *env, struct lu_object *o)
dt_object_fini(&obj->ls_obj);
lu_object_header_fini(h);
- OBD_FREE_PTR(obj);
+ OBD_FREE_PRE(obj, sizeof(*obj), "kfreed");
+ kfree_rcu(obj, ls_header.loh_rcu);
}
static struct lu_object_operations ls_lu_obj_ops = {