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

raid5: remove the meaningless check in raid5_make_request

We can't guarntee the batched stripe to be set with STRIPE_HANDLE since
there are lots of functions could set the flag, such as sync_request,
ops_complete_* and end_{read,write}_request etc.

Also clear_batch_ready called in handle_stripe ensures the batched list
can't continue to be handled by handle_stripe.
Signed-off-by: NGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: NSong Liu <songliubraving@fb.com>
上级 cb9902db
...@@ -5738,7 +5738,6 @@ static bool raid5_make_request(struct mddev *mddev, struct bio * bi) ...@@ -5738,7 +5738,6 @@ static bool raid5_make_request(struct mddev *mddev, struct bio * bi)
do_flush = false; do_flush = false;
} }
if (!sh->batch_head || sh == sh->batch_head)
set_bit(STRIPE_HANDLE, &sh->state); set_bit(STRIPE_HANDLE, &sh->state);
clear_bit(STRIPE_DELAYED, &sh->state); clear_bit(STRIPE_DELAYED, &sh->state);
if ((!sh->batch_head || sh == sh->batch_head) && if ((!sh->batch_head || sh == sh->batch_head) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册