X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Flocal_storage.c;h=c5d893520530fab44ef5d97adaaa4f2f075bdcfe;hb=98161628da9ba5268f8adb15d239fad18aeb8647;hp=bbb8ada09dc830b1fa47831aea1306dd1a7d14a4;hpb=b19b318b5e74e76b3fc5b15c796666d04df62466;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/local_storage.c b/lustre/obdclass/local_storage.c index bbb8ada..c5d8935 100644 --- 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 = {