Skip to content

md: Change active_io to percpu

Xiao Ni linux-raid 2 versions – Applied

Status from this message: Applied to md-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 5 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2md: Factor out is_md_suspended helperdrivers/md/md.c+12 -50 replies
2/2md: Change active_io to percpudrivers/md/md.c drivers/md/md.h+25 -201 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/2] md: Change active_io to percpu

Hi all

This is a optimization for active_io. Now it's atomic type and added/decreased when io comes, but it's only needed to be checked when suspending raid. So we can change it to percpu type.

The first patch factors out a helper function which is used in the second patch.

The patches have been tested by regression test under tests directory. I did a performance test too. In my environment there is no big change.

Xiao Ni (2):
Factor out is_md_suspended helper
md: Change active_io to percpu

 drivers/md/md.c | 50 ++++++++++++++++++++++++++++++-------------------
 drivers/md/md.h |  2 +-
 2 files changed, 32 insertions(+), 20 deletions(-)
Signature · 1 line
2.32.0 (Apple Git-132)