From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753088AbcKRKHf (ORCPT ); Fri, 18 Nov 2016 05:07:35 -0500 Received: from mga01.intel.com ([192.55.52.88]:54177 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752654AbcKRKHa (ORCPT ); Fri, 18 Nov 2016 05:07:30 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,656,1473145200"; d="scan'208";a="1070220134" From: "Reshetova, Elena" To: Peter Zijlstra , "gregkh@linuxfoundation.org" , "keescook@chromium.org" , "will.deacon@arm.com" , "arnd@arndb.de" , "tglx@linutronix.de" , "mingo@kernel.org" , "hpa@zytor.com" , "dave@progbits.org" CC: "linux-kernel@vger.kernel.org" Subject: RE: [RFC][PATCH 7/7] kref: Implement using refcount_t Thread-Topic: [RFC][PATCH 7/7] kref: Implement using refcount_t Thread-Index: AQHSPp8nZI2aGULSnkSyKlUn6xiKNqDeiSUQ Date: Fri, 18 Nov 2016 10:07:26 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612B41C148C4@IRSMSX102.ger.corp.intel.com> References: <20161114173946.501528675@infradead.org> <20161114174446.832175072@infradead.org> In-Reply-To: <20161114174446.832175072@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id uAIA7vnb017113 >Provide refcount_t, an atomic_t like primitive built just for refcounting. >It provides overflow and underflow checks as well as saturation semantics such that when it overflows, we'll never attempt to free it again, ever. Peter do you have the changes to the refcount_t interface compare to the version in this patch? We are now starting working on atomic_t --> refcount_t conversions and it would save a bit of work to have latest version from you that we can be based upon. Best Regards, Elena.