From: Shaohua Li <shli@kernel.org>
To: Tejun Heo <tj@kernel.org>
Cc: NeilBrown <neilb@suse.com>, Christoph Lameter <cl@linux.com>,
linux-kernel@vger.kernel.org,
Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: [PATCH] percpu-refcount: support synchronous switch to atomic mode.
Date: Wed, 22 Mar 2017 19:20:20 -0700 [thread overview]
Message-ID: <20170323022020.buq4us3lvp2jbyes@kernel.org> (raw)
In-Reply-To: <20170322150029.GA7532@htj.duckdns.org>
On Wed, Mar 22, 2017 at 11:00:29AM -0400, Tejun Heo wrote:
> On Wed, Mar 22, 2017 at 12:50:12PM +1100, NeilBrown wrote:
> >
> > percpu_ref_switch_to_atomic_sync() schedules the switch
> > to atomic mode, then waits for it to complete.
> >
> > Also export percpu_ref_switch_to_* so they can be used from modules.
> >
> > This will be used in md/raid to count the number of pending write
> > requests to an array.
> > We occasionally need to check if the count is zero, but most often
> > we don't care.
> > We always want updates to the counter to be fast, as in some cases
> > we count every 4K page.
> >
> > Signed-off-by: NeilBrown <neilb@suse.com>
>
> Acked-by: Tejun Heo <tj@kernel.org>
>
> Please feel free to route through other patches through md tree. If
> preferable, I can route it through percpu/for-4.12.
Thanks, Tejun. I applied it to md tree, that will avoid a lot of troubles.
Thanks,
Shaohua
prev parent reply other threads:[~2017-03-23 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-22 1:50 NeilBrown
2017-03-22 15:00 ` Tejun Heo
2017-03-23 2:20 ` Shaohua Li [this message]
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=20170323022020.buq4us3lvp2jbyes@kernel.org \
--to=shli@kernel.org \
--cc=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
--cc=tj@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®