* [PATCH] raid5: remove unnecessary "set_bit(STRIPE_HANDLE,&sh->state)" in func handle_stripe_dirtying.
@ 2012-08-22 11:19 Jianpeng Ma
0 siblings, 0 replies; only message in thread
From: Jianpeng Ma @ 2012-08-22 11:19 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
---
drivers/md/raid5.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index adda94d..8f00c4a 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -2817,10 +2817,8 @@ static void 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);
- }
}
}
if (rcw <= rmw && rcw > 0) {
@@ -2843,10 +2841,8 @@ static void 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);
- }
}
}
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-22 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 11:19 [PATCH] raid5: remove unnecessary "set_bit(STRIPE_HANDLE,&sh->state)" in func handle_stripe_dirtying Jianpeng Ma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).