Skip to content

Commit fa0c554

Browse files
Jiri Slabyjankara
authored andcommitted
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 <jslaby@suse.cz> Reported-by: auxsvr@gmail.com Reported-by: Benoît Monin <benoit.monin@gmx.fr> Cc: Jan Kara <jack@suse.cz> Cc: stable@vger.kernel.org # >= 3.16 Cc: reiserfs-devel@vger.kernel.org Fixes: 797d901 Signed-off-by: Jan Kara <jack@suse.cz>
1 parent fdf2657 commit fa0c554

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/reiserfs/super.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,6 +2172,9 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
21722172
reiserfs_write_unlock(s);
21732173
}
21742174

2175+
if (sbi->commit_wq)
2176+
destroy_workqueue(sbi->commit_wq);
2177+
21752178
cancel_delayed_work_sync(&REISERFS_SB(s)->old_work);
21762179

21772180
reiserfs_free_bitmap_cache(s);

0 commit comments

Comments
 (0)