diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2020-07-28 12:01:40 +0200 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-08-02 23:03:51 -0700 |
commit | e3914d596f79742ce3038ffdf66e4fa585ad7cd5 (patch) | |
tree | f880d4a626c9b6465e1e2adfa76fb1a36f661751 /drivers | |
parent | ec164d07aa771370c7c24c1fa7f7692ad30f01cb (diff) | |
download | linux-e3914d596f79742ce3038ffdf66e4fa585ad7cd5.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index a6ff6e1e039b..790d91aa5f40 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -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) |