Skip to content

Misc changes for md

Guoqing Jiang linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6md/raid1: only allocate write behind bio for WriteMostly devicedrivers/md/raid1.c+1 -12 replies
2/6md/bitmap: don't set max_write_behind if there is no write mostly devicedrivers/md/md-bitmap.c+17 -02 replies
3/6md/raid1: use rdev in raid1_write_request directlydrivers/md/raid1.c+5 -60 replies
4/6md/raid10: add 'read_err' to raid10_read_requestdrivers/md/raid10.c+4 -42 replies
5/6md/raid5: call roundup_pow_of_two in raid5_rundrivers/md/raid5.c+1 -40 replies
6/6md: remove unused argument from md_new_eventdrivers/md/md.c drivers/md/md.h drivers/md/raid10.c +1 more+18 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Misc changes for md

Hello,

The first patch fixes the same calltrace as commit 6607cd319b6b ("raid1:
ensure write behind bio has less than BIO_MAX_VECS sectors") tried before, but unfortunately the calltrace still could happen if array without write mostly device is configured with write-behind enabled. So the first patch is suitable for fix branch which others are materials for next branch.

Pls review.

Thanks,
Guoqing

Guoqing Jiang (6):
md/raid1: only allocate write behind bio for WriteMostly device md/bitmap: don't set max_write_behind if there is no write mostly
device
md/raid1: use rdev in raid1_write_request directly md/raid10: add 'read_err' to raid10_read_request md/raid5: call roundup_pow_of_two in raid5_run
md: remove unused argument from md_new_event

 drivers/md/md-bitmap.c | 17 +++++++++++++++++
 drivers/md/md.c        | 30 +++++++++++++++---------------
 drivers/md/md.h        |  2 +-
 drivers/md/raid1.c     | 13 ++++++-------
 drivers/md/raid10.c    | 10 +++++-----
 drivers/md/raid5.c     |  7 ++-----
 6 files changed, 46 insertions(+), 33 deletions(-)
Signature · 1 line
2.31.1