md/raid5: remove the redundant setting of STRIPE_HANDLE
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Tue, 28 Jul 2020 10:01:40 +0000 (12:01 +0200)
committerSong Liu <songliubraving@fb.com>
Mon, 3 Aug 2020 06:03:51 +0000 (23:03 -0700)
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>
drivers/md/raid5.c

index a6ff6e1..790d91a 100644 (file)
@@ -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)