aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2014-12-12 16:29:29 +0100
committerJan Kara <[email protected]>2014-12-12 22:18:07 +0100
commitfa0c5540739320258c3e3a45aaae9dae467b2504 (patch)
tree7fe60c0e78539c2f8c8e93eb45ce10b408f86a71
parentfdf2657bc81b10dee856ec9f8fe5b201c0561e9d (diff)
reiserfs: destroy allocated commit workqueue
When resirefs is trying to mount a partition, it creates a commit workqueue (sbi->commit_wq). But when mount fails later, the workqueue is not freed. Signed-off-by: Jiri Slaby <[email protected]> Reported-by: [email protected] Reported-by: BenoĆ®t Monin <[email protected]> Cc: Jan Kara <[email protected]> Cc: [email protected] # >= 3.16 Cc: [email protected] Fixes: 797d9016ceca69879bb273218810fa0beef46aac Signed-off-by: Jan Kara <[email protected]>
-rw-r--r--fs/reiserfs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index ea63ab13ef92..71fbbe3e2dab 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -2172,6 +2172,9 @@ error_unlocked:
reiserfs_write_unlock(s);
}
+ if (sbi->commit_wq)
+ destroy_workqueue(sbi->commit_wq);
+
cancel_delayed_work_sync(&REISERFS_SB(s)->old_work);
reiserfs_free_bitmap_cache(s);