diff mbox

[1/2] ceph: Do not leak fscache workqueue

Message ID 8eeeba4f77ab7b2a3818a14d6a941b01a6c7f8c3.1377644443.git.milosz@adfin.com (mailing list archive)
State New, archived
Headers show

Commit Message

Milosz Tanski Aug. 27, 2013, 11:08 p.m. UTC
Previously I was not cleanup up the ceph fscache validate workqueue on
filesystem unmount.

Signed-off-by: Milosz Tanski <milosz@adfin.com>
---
 fs/ceph/super.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index a56baab..a14b13a 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -584,6 +584,7 @@  static void destroy_fs_client(struct ceph_fs_client *fsc)
 
 #ifdef CONFIG_CEPH_FSCACHE
 	ceph_fscache_unregister_fsid_cookie(fsc);
+	destroy_workqueue(fsc->revalidate_wq);
 #endif
 
 	destroy_workqueue(fsc->wb_wq);