From: Jens Axboe <axboe@kernel.dk>
To: Yufen Yu <yuyufen@huawei.com>, dwindsor@gmail.com, peterz@infradead.org
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH 0/2] blk-mq: convert atomic_t to refcount_t
Date: Fri, 22 Mar 2019 09:23:17 -0600 [thread overview]
Message-ID: <24f14149-a309-5876-563c-e11124d0c6ac@kernel.dk> (raw)
In-Reply-To: <20190322144818.987-1-yuyufen@huawei.com>
On 3/22/19 8:48 AM, Yufen Yu wrote:
> Hi,
>
> This patchset covert atomic variables (hctx.nr_active and blk_mq_tag.active_queues)
> to newly provided refcount_t type and API, which can prevent accidental counter overflows
> and underflows.
Neither of these are reference counts in the sense that things go away when they
hit zero.
--
Jens Axboe
prev parent reply other threads:[~2019-03-22 15:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-22 14:48 [PATCH 0/2] blk-mq: convert atomic_t to refcount_t Yufen Yu
2019-03-22 14:48 ` [PATCH 1/2] blk-mq: convert hctx.nr_active " Yufen Yu
2019-03-22 15:01 ` Peter Zijlstra
2019-03-22 15:04 ` Peter Zijlstra
2019-03-22 15:21 ` Jens Axboe
2019-03-23 12:30 ` yuyufen
2019-03-22 14:48 ` [PATCH 2/2] blk-mq: covert blk_mq_tag.active_queues " Yufen Yu
2019-03-22 15:02 ` Peter Zijlstra
2019-03-22 15:23 ` Jens Axboe [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=24f14149-a309-5876-563c-e11124d0c6ac@kernel.dk \
--to=axboe@kernel.dk \
--cc=dwindsor@gmail.com \
--cc=linux-block@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=yuyufen@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).