We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4f6642 + dc5d17a commit 8dfe116Copy full SHA for 8dfe116
drivers/md/md.c
@@ -639,8 +639,10 @@ static void md_submit_flush_data(struct work_struct *ws)
639
* could wait for this and below md_handle_request could wait for those
640
* bios because of suspend check
641
*/
642
+ spin_lock_irq(&mddev->lock);
643
mddev->prev_flush_start = mddev->start_flush;
644
mddev->flush_bio = NULL;
645
+ spin_unlock_irq(&mddev->lock);
646
wake_up(&mddev->sb_wait);
647
648
if (bio->bi_iter.bi_size == 0) {
0 commit comments