lkml.org 
[lkml]   [2017]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] genalloc: Make the avail variable an atomic64_t


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

\
 
 \ /
  Last update: 2017-10-25 17:48    [W:0.163 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site