From: Xiao Ni <xni@redhat.com>
To: song@kernel.org
Cc: linux-raid@vger.kernel.org, ming.lei@redhat.com,
ncroxon@redhat.com, heinzm@redhat.com
Subject: [PATCH 0/2] md: Change active_io to percpu
Date: Sat, 21 Jan 2023 09:39:35 +0800 [thread overview]
Message-ID: <20230121013937.97576-1-xni@redhat.com> (raw)
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)
next reply other threads:[~2023-01-21 1:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-21 1:39 Xiao Ni [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230121013937.97576-1-xni@redhat.com \
--to=xni@redhat.com \
--cc=heinzm@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=ncroxon@redhat.com \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.