Skip to content

Commit 1d25875

Browse files
Guoqing Jiangliu-song-6
authored andcommitted
Revert "md-raid: destroy the bitmap after destroying the thread"
This reverts commit e151db8. Because it obviously breaks clustered raid as noticed by Neil though it fixed KASAN issue for dm-raid, let's revert it and fix KASAN issue in next commit. [1]. https://lore.kernel.org/linux-raid/[email protected]/T/#m95ac225cab7409f66c295772483d091084a6d470 Fixes: e151db8 ("md-raid: destroy the bitmap after destroying the thread") Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Song Liu <[email protected]>
1 parent 5e8daf9 commit 1d25875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6239,11 +6239,11 @@ static void mddev_detach(struct mddev *mddev)
62396239
static void __md_stop(struct mddev *mddev)
62406240
{
62416241
struct md_personality *pers = mddev->pers;
6242+
md_bitmap_destroy(mddev);
62426243
mddev_detach(mddev);
62436244
/* Ensure ->event_work is done */
62446245
if (mddev->event_work.func)
62456246
flush_workqueue(md_misc_wq);
6246-
md_bitmap_destroy(mddev);
62476247
spin_lock(&mddev->lock);
62486248
mddev->pers = NULL;
62496249
spin_unlock(&mddev->lock);

0 commit comments

Comments
 (0)