From: Logan Gunthorpe <logang@deltatee.com>
To: sbates@raithlin.com, corbet@lwn.net,
mathieu.desnoyers@efficios.com, danielmentz@google.com,
akpm@linux-foundation.org, will.deacon@arm.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] genalloc: Make the avail variable an atomic64_t
Date: Wed, 25 Oct 2017 09:47:14 -0600 [thread overview]
Message-ID: <88e2c63a-5295-9c1c-9136-eb00c4dc85c4@deltatee.com> (raw)
In-Reply-To: <1508945574-25984-1-git-send-email-sbates@raithlin.com>
On 25/10/17 09:32 AM, sbates@raithlin.com wrote:
> From: Stephen Bates <sbates@raithlin.com>
>
> If the amount of resources allocated to a gen_pool exceeds 2^32 then
> the avail atomic overflows and this causes problems when clients try
> and borrow resources from the pool.
>
> Add the <linux/atomic.h> header to pull in atomic64 operations on
> platforms that do not support them natively.
>
> Signed-off-by: Stephen Bates <sbates@raithlin.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
This looks pretty straightforward to me.
Logan
next prev parent reply other threads:[~2017-10-25 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 15:32 sbates
2017-10-25 15:47 ` Logan Gunthorpe [this message]
2017-10-25 17:55 ` Daniel Mentz
2017-10-25 18:11 ` Logan Gunthorpe
2017-10-25 22:20 ` Stephen Bates
2017-10-26 0:47 ` Mathieu Desnoyers
2017-10-26 11:25 ` Stephen Bates
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=88e2c63a-5295-9c1c-9136-eb00c4dc85c4@deltatee.com \
--to=logang@deltatee.com \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=danielmentz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=sbates@raithlin.com \
--cc=will.deacon@arm.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
all inboxes | Powered by JetHome®