* [PATCH 1/2] md/raid5:Change the order of md_write_start() and chunk_aligned_read() in function make_request().
@ 2012-06-02 8:15 majianpeng
0 siblings, 0 replies; only message in thread
From: majianpeng @ 2012-06-02 8:15 UTC (permalink / raw)
To: Neil Brown; +Cc: linux-raid
If exec chunk_aligned_read(),it did not neccessary to exec
md_write_start().
Signed-off-by: majianpeng <majianpeng@gmail.com>
---
drivers/md/raid5.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index d267672..5653125 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -3978,13 +3978,13 @@ static void make_request(struct mddev *mddev, struct bio * bi)
return;
}
- md_write_start(mddev, bi);
-
if (rw == READ &&
mddev->reshape_position == MaxSector &&
chunk_aligned_read(mddev,bi))
return;
+ md_write_start(mddev, bi);
+
logical_sector = bi->bi_sector & ~((sector_t)STRIPE_SECTORS-1);
last_sector = bi->bi_sector + (bi->bi_size>>9);
bi->bi_next = NULL;
--
1.7.5.4
--------------
majianpeng
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-02 8:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02 8:15 [PATCH 1/2] md/raid5:Change the order of md_write_start() and chunk_aligned_read() in function make_request() majianpeng
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).