From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751980AbdJYPrU (ORCPT ); Wed, 25 Oct 2017 11:47:20 -0400 Received: from ale.deltatee.com ([207.54.116.67]:37118 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdJYPrT (ORCPT ); Wed, 25 Oct 2017 11:47:19 -0400 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 References: <1508945574-25984-1-git-send-email-sbates@raithlin.com> From: Logan Gunthorpe Message-ID: <88e2c63a-5295-9c1c-9136-eb00c4dc85c4@deltatee.com> Date: Wed, 25 Oct 2017 09:47:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1508945574-25984-1-git-send-email-sbates@raithlin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, will.deacon@arm.com, akpm@linux-foundation.org, danielmentz@google.com, mathieu.desnoyers@efficios.com, corbet@lwn.net, sbates@raithlin.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH] genalloc: Make the avail variable an atomic64_t X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/10/17 09:32 AM, sbates@raithlin.com wrote: > From: Stephen Bates > > 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 header to pull in atomic64 operations on > platforms that do not support them natively. > > Signed-off-by: Stephen Bates Reviewed-by: Logan Gunthorpe This looks pretty straightforward to me. Logan