summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2020-07-28 12:01:40 +0200
committerSong Liu <songliubraving@fb.com>2020-08-03 08:03:51 +0200
commite3914d596f79742ce3038ffdf66e4fa585ad7cd5 (patch)
treef880d4a626c9b6465e1e2adfa76fb1a36f661751 /drivers/md/raid5.c
parentmd: register new md sysfs file 'uuid' read-only (diff)
downloadlinux-e3914d596f79742ce3038ffdf66e4fa585ad7cd5.tar.xz
linux-e3914d596f79742ce3038ffdf66e4fa585ad7cd5.zip
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 '')
-rw-r--r--drivers/md/raid5.c8
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)