mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 09:28:44 -04:00
md/raid5: remove the redundant setting of STRIPE_HANDLE
The flag is already set before compare rcw with rmw, so it is not necessary to do it again. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Song Liu <songliubraving@fb.com>
This commit is contained in:
@@ -3995,10 +3995,8 @@ static int handle_stripe_dirtying(struct r5conf *conf,
|
||||
set_bit(R5_LOCKED, &dev->flags);
|
||||
set_bit(R5_Wantread, &dev->flags);
|
||||
s->locked++;
|
||||
} else {
|
||||
} else
|
||||
set_bit(STRIPE_DELAYED, &sh->state);
|
||||
set_bit(STRIPE_HANDLE, &sh->state);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4023,10 +4021,8 @@ static int handle_stripe_dirtying(struct r5conf *conf,
|
||||
set_bit(R5_Wantread, &dev->flags);
|
||||
s->locked++;
|
||||
qread++;
|
||||
} else {
|
||||
} else
|
||||
set_bit(STRIPE_DELAYED, &sh->state);
|
||||
set_bit(STRIPE_HANDLE, &sh->state);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rcw && conf->mddev->queue)
|
||||
|
||||
Reference in New Issue
Block a user