Commit:     b997b82d266c9fb910fc2ad95b9bb93b3bccf9be
Parent:     f5353cd7c9cd10cdf9d62a5487f3db77b7b68105
Author:     Jonathan Brassow <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 02:33:08 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 9 12:30:48 2007 -0700

    dm raid1: switch rh_in_sync to blocking in do_reads
    The call to rh_in_sync() in do_reads() should be allowed to block.  It is in
    the mirror worker thread which already permits blocking operations.  This 
    be needed to support clustered mirroring which will perform network
    Signed-off-by: Jonathan Brassow <[EMAIL PROTECTED]>
    Signed-off-by: Alasdair G Kergon <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/md/dm-raid1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 85d254e..ef124b7 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -741,7 +741,7 @@ static void do_reads(struct mirror_set *ms, struct bio_list 
                 * We can only read balance if the region is in sync.
-               if (rh_in_sync(&ms->rh, region, 0))
+               if (rh_in_sync(&ms->rh, region, 1))
                        m = choose_mirror(ms, bio->bi_sector);
                        m = ms->default_mirror;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to