diff options
| -rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index af3f7aa73e13..ee1f88419cb0 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c | |||
| @@ -472,11 +472,15 @@ bail: | |||
| 472 | 472 | ||
| 473 | void dlm_destroy_master_caches(void) | 473 | void dlm_destroy_master_caches(void) |
| 474 | { | 474 | { |
| 475 | if (dlm_lockname_cache) | 475 | if (dlm_lockname_cache) { |
| 476 | kmem_cache_destroy(dlm_lockname_cache); | 476 | kmem_cache_destroy(dlm_lockname_cache); |
| 477 | dlm_lockname_cache = NULL; | ||
| 478 | } | ||
| 477 | 479 | ||
| 478 | if (dlm_lockres_cache) | 480 | if (dlm_lockres_cache) { |
| 479 | kmem_cache_destroy(dlm_lockres_cache); | 481 | kmem_cache_destroy(dlm_lockres_cache); |
| 482 | dlm_lockres_cache = NULL; | ||
| 483 | } | ||
| 480 | } | 484 | } |
| 481 | 485 | ||
| 482 | static void dlm_lockres_release(struct kref *kref) | 486 | static void dlm_lockres_release(struct kref *kref) |
