aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 3f5234fe3593..98b09773e79e 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -561,8 +561,8 @@ static int make_request(request_queue_t *q, struct bio * bio)
561 * thread has put up a bar for new requests. 561 * thread has put up a bar for new requests.
562 * Continue immediately if no resync is active currently. 562 * Continue immediately if no resync is active currently.
563 */ 563 */
564 if (md_write_start(mddev, bio)==0) 564 md_write_start(mddev, bio); /* wait on superblock update early */
565 return 0; 565
566 spin_lock_irq(&conf->resync_lock); 566 spin_lock_irq(&conf->resync_lock);
567 wait_event_lock_irq(conf->wait_resume, !conf->barrier, conf->resync_lock, ); 567 wait_event_lock_irq(conf->wait_resume, !conf->barrier, conf->resync_lock, );
568 conf->nr_pending++; 568 conf->nr_pending++;