diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-11-25 09:39:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-28 16:14:44 +0300 |
commit | c127e451a71b8cbe6c3d8fc946ab12b9d9c1bab1 (patch) | |
tree | 5a317132b6c545afc00c4ec099e5e93a8f0f91fd /drivers/staging/lustre | |
parent | c976752e39988b0b8d7d4d7f06ed0f67582b4d46 (diff) | |
download | linux-c127e451a71b8cbe6c3d8fc946ab12b9d9c1bab1.tar.xz |
staging: lustre: ldlm: Remove a attribute group from a kobject
All attribute group created during ldlm_setup() should be removed
in ldlm_cleanup().
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c index 2d5a2c932ddc..ada50b69c5f6 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c @@ -1093,8 +1093,10 @@ static int ldlm_cleanup(void) kset_unregister(ldlm_ns_kset); if (ldlm_svc_kset) kset_unregister(ldlm_svc_kset); - if (ldlm_kobj) + if (ldlm_kobj) { + sysfs_remove_group(ldlm_kobj, &ldlm_attr_group); kobject_put(ldlm_kobj); + } ldlm_debugfs_cleanup(); |