diff options
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 7549b0bad326..f0949e2bcd6e 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -943,7 +943,8 @@ static int make_request(struct request_queue *q, struct bio * bio) | |||
943 | 943 | ||
944 | /* do behind I/O ? */ | 944 | /* do behind I/O ? */ |
945 | if (bitmap && | 945 | if (bitmap && |
946 | atomic_read(&bitmap->behind_writes) < bitmap->max_write_behind && | 946 | (atomic_read(&bitmap->behind_writes) |
947 | < mddev->bitmap_info.max_write_behind) && | ||
947 | (behind_pages = alloc_behind_pages(bio)) != NULL) | 948 | (behind_pages = alloc_behind_pages(bio)) != NULL) |
948 | set_bit(R1BIO_BehindIO, &r1_bio->state); | 949 | set_bit(R1BIO_BehindIO, &r1_bio->state); |
949 | 950 | ||