diff options
author | Jody McIntyre <scjody@modernduck.com> | 2005-11-30 00:45:31 -0500 |
---|---|---|
committer | Jody McIntyre <scjody@modernduck.com> | 2005-11-30 00:45:31 -0500 |
commit | 01fc99864ecc678c4f1f476b2a8b64ebcb14e733 (patch) | |
tree | 947696fdb2f76609d1a079aa6ff57a22e490d803 /drivers/md/raid10.c | |
parent | a880b11a95fab4618da412d99fc7365d723e702d (diff) | |
parent | d2ef5ebb4c4fe141a82252d4db8d8521e6765c5a (diff) |
Merge with http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 867f06ae33d9..713dc9c2c730 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -552,7 +552,11 @@ static int read_balance(conf_t *conf, r10bio_t *r10_bio) | |||
552 | !test_bit(In_sync, &rdev->flags)) | 552 | !test_bit(In_sync, &rdev->flags)) |
553 | continue; | 553 | continue; |
554 | 554 | ||
555 | if (!atomic_read(&rdev->nr_pending)) { | 555 | /* This optimisation is debatable, and completely destroys |
556 | * sequential read speed for 'far copies' arrays. So only | ||
557 | * keep it for 'near' arrays, and review those later. | ||
558 | */ | ||
559 | if (conf->near_copies > 1 && !atomic_read(&rdev->nr_pending)) { | ||
556 | disk = ndisk; | 560 | disk = ndisk; |
557 | slot = nslot; | 561 | slot = nslot; |
558 | break; | 562 | break; |