mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
raid5: disable batch with log enabled
With log enabled, r5l_write_stripe will add the stripe to log. With batch, several stripes are linked together. The stripes must be in the same state. While with log, the log/reclaim unit is stripe, we can't guarantee the several stripes are in the same state. Disabling batch for log now. Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
parent
5cb2fbd6ea
commit
9c3e333d3f
@ -755,6 +755,10 @@ static void unlock_two_stripes(struct stripe_head *sh1, struct stripe_head *sh2)
|
|||||||
/* Only freshly new full stripe normal write stripe can be added to a batch list */
|
/* Only freshly new full stripe normal write stripe can be added to a batch list */
|
||||||
static bool stripe_can_batch(struct stripe_head *sh)
|
static bool stripe_can_batch(struct stripe_head *sh)
|
||||||
{
|
{
|
||||||
|
struct r5conf *conf = sh->raid_conf;
|
||||||
|
|
||||||
|
if (conf->log)
|
||||||
|
return false;
|
||||||
return test_bit(STRIPE_BATCH_READY, &sh->state) &&
|
return test_bit(STRIPE_BATCH_READY, &sh->state) &&
|
||||||
!test_bit(STRIPE_BITMAP_PENDING, &sh->state) &&
|
!test_bit(STRIPE_BITMAP_PENDING, &sh->state) &&
|
||||||
is_full_stripe_write(sh);
|
is_full_stripe_write(sh);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user