From: Tejun Heo <tj@kernel.org>
To: NeilBrown <neilb@suse.com>
Cc: Christoph Lameter <cl@linux.com>,
linux-kernel@vger.kernel.org, Shaohua Li <shli@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 11:00:29 -0400 [thread overview]
Message-ID: <20170322150029.GA7532@htj.duckdns.org> (raw)
In-Reply-To: <87o9wuaxm3.fsf@notabene.neil.brown.name>
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
next prev parent reply other threads:[~2017-03-22 15:00 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 [this message]
2017-03-23 2:20 ` Shaohua Li
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=20170322150029.GA7532@htj.duckdns.org \
--to=tj@kernel.org \
--cc=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.com \
--cc=shli@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®