Commit f8546f79 authored by Jiri Slaby's avatar Jiri Slaby Committed by Luis Henriques

reiserfs: destroy allocated commit workqueue

commit fa0c5540 upstream.

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: default avatarJiri Slaby <jslaby@suse.cz>
Reported-by: auxsvr@gmail.com
Reported-by: default avatarBenoît Monin <benoit.monin@gmx.fr>
Cc: Jan Kara <jack@suse.cz>
Cc: reiserfs-devel@vger.kernel.org
Fixes: 797d9016Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 06f863df
...@@ -2161,6 +2161,9 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent) ...@@ -2161,6 +2161,9 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
reiserfs_write_unlock(s); reiserfs_write_unlock(s);
} }
if (sbi->commit_wq)
destroy_workqueue(sbi->commit_wq);
cancel_delayed_work_sync(&REISERFS_SB(s)->old_work); cancel_delayed_work_sync(&REISERFS_SB(s)->old_work);
reiserfs_free_bitmap_cache(s); reiserfs_free_bitmap_cache(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment