提交 e3914d59 编写于 作者: G Guoqing Jiang 提交者: Song Liu

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: NGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: NSong Liu <songliubraving@fb.com>
上级 ec164d07
...@@ -3995,10 +3995,8 @@ static int handle_stripe_dirtying(struct r5conf *conf, ...@@ -3995,10 +3995,8 @@ static int handle_stripe_dirtying(struct r5conf *conf,
set_bit(R5_LOCKED, &dev->flags); set_bit(R5_LOCKED, &dev->flags);
set_bit(R5_Wantread, &dev->flags); set_bit(R5_Wantread, &dev->flags);
s->locked++; s->locked++;
} else { } else
set_bit(STRIPE_DELAYED, &sh->state); set_bit(STRIPE_DELAYED, &sh->state);
set_bit(STRIPE_HANDLE, &sh->state);
}
} }
} }
} }
...@@ -4023,10 +4021,8 @@ static int handle_stripe_dirtying(struct r5conf *conf, ...@@ -4023,10 +4021,8 @@ static int handle_stripe_dirtying(struct r5conf *conf,
set_bit(R5_Wantread, &dev->flags); set_bit(R5_Wantread, &dev->flags);
s->locked++; s->locked++;
qread++; qread++;
} else { } else
set_bit(STRIPE_DELAYED, &sh->state); set_bit(STRIPE_DELAYED, &sh->state);
set_bit(STRIPE_HANDLE, &sh->state);
}
} }
} }
if (rcw && conf->mddev->queue) if (rcw && conf->mddev->queue)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册