All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] md: Change active_io to percpu
@ 2023-01-21  1:39 Xiao Ni
  2023-01-21  1:39 ` [PATCH 1/2] md: Factor out is_md_suspended helper Xiao Ni
  2023-01-21  1:39 ` [PATCH 2/2] md: Change active_io to percpu Xiao Ni
  0 siblings, 2 replies; 10+ messages in thread
From: Xiao Ni @ 2023-01-21  1:39 UTC (permalink / raw)
  To: song; +Cc: linux-raid, ming.lei, ncroxon, heinzm

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
  Change active_io to percpu

 drivers/md/md.c | 46 ++++++++++++++++++++++++++++++----------------
 drivers/md/md.h |  2 +-
 2 files changed, 31 insertions(+), 17 deletions(-)

-- 
2.32.0 (Apple Git-132)


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH V2 0/2] md: Change active_io to percpu
@ 2023-01-31  5:17 Xiao Ni
  2023-01-31  5:17 ` [PATCH 1/2] md: Factor out is_md_suspended helper Xiao Ni
  0 siblings, 1 reply; 10+ messages in thread
From: Xiao Ni @ 2023-01-31  5:17 UTC (permalink / raw)
  To: song; +Cc: linux-raid, ming.lei, ncroxon, heinzm

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(-)

-- 
2.32.0 (Apple Git-132)


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-01-31  5:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-21  1:39 [PATCH 0/2] md: Change active_io to percpu Xiao Ni
2023-01-21  1:39 ` [PATCH 1/2] md: Factor out is_md_suspended helper Xiao Ni
2023-01-23 13:18   ` Paul Menzel
2023-01-23 23:48     ` Xiao Ni
2023-01-21  1:39 ` [PATCH 2/2] md: Change active_io to percpu Xiao Ni
2023-01-23 13:22   ` Paul Menzel
2023-01-23 23:50     ` Xiao Ni
2023-01-30  0:55   ` kernel test robot
2023-01-31  2:46   ` Ming Lei
  -- strict thread matches above, loose matches on Subject: below --
2023-01-31  5:17 [PATCH V2 0/2] " Xiao Ni
2023-01-31  5:17 ` [PATCH 1/2] md: Factor out is_md_suspended helper Xiao Ni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.