1
0
Fork 0

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: 797d9016ce
Signed-off-by: Jan Kara <jack@suse.cz>
hifive-unleashed-5.1
Jiri Slaby 2014-12-12 16:29:29 +01:00 committed by Jan Kara
parent fdf2657bc8
commit fa0c554073
1 changed files with 3 additions and 0 deletions

View File

@ -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);