[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <88e2c63a-5295-9c1c-9136-eb00c4dc85c4@deltatee.com>
Date: Wed, 25 Oct 2017 09:47:14 -0600
From: Logan Gunthorpe <logang@...tatee.com>
To: sbates@...thlin.com, corbet@....net,
mathieu.desnoyers@...icios.com, danielmentz@...gle.com,
akpm@...ux-foundation.org, will.deacon@....com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] genalloc: Make the avail variable an atomic64_t
On 25/10/17 09:32 AM, sbates@...thlin.com wrote:
> From: Stephen Bates <sbates@...thlin.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@...thlin.com>
Reviewed-by: Logan Gunthorpe <logang@...tatee.com>
This looks pretty straightforward to me.
Logan
Powered by blists - more mailing lists