Skip to content

Reorganize raid*_make_request to clean up code

Robert LeBlanc linux-raid 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v22 patches 1 replySuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

Shaohua Li
* Make md_write_start before wait_barrier
* Move I/O in recovery stripe test to write path
* Changed to if/then instead of return in __make_request

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2md/raid1: Refactor raid1_make_requestdrivers/md/raid1.c+134 -1250 replies
2/2md/raid10: Refactor raid10_make_requestdrivers/md/raid10.c+111 -1042 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Reorganize raid*_make_request to clean up code

In response to Christoph, I've broken the read and writes into their own functions to make the code even cleaner. Since it is such a big change, I broke up the commits into this series instead of creating a v2 of the previous patch.

Changes since v2:
Shaohua Li
* Make md_write_start before wait_barrier
* Move I/O in recovery stripe test to write path
* Changed to if/then instead of return in __make_request

Changes since v1:

John Stoffel
* Changed to if/then instead of return in raid1_make_request

Neil Brown
* Moved wait_barrier into raid1_{read,write}_request so that it could be after ->suspend_{hi,lo}. This prevents a write blocking a resync until the suspend region is moved.

Robert LeBlanc (2):
md/raid1: Refactor raid1_make_request
md/raid10: Refactor raid10_make_request

 drivers/md/raid1.c  | 259 +++++++++++++++++++++++++++-------------------------
 drivers/md/raid10.c | 215 ++++++++++++++++++++++---------------------
 2 files changed, 245 insertions(+), 229 deletions(-)
Signature · 1 line
2.10.2