From: Andi Kleen Subject: Re: [PATCH 22/25] Generic dynamic per cpu refcounting Date: Thu, 29 Nov 2012 10:45:04 -0800 Message-ID: References: <1354121029-1376-1-git-send-email-koverstreet@google.com> <1354121029-1376-23-git-send-email-koverstreet@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, zab@redhat.com, bcrl@kvack.org, jmoyer@redhat.com, axboe@kernel.dk, viro@zeniv.linux.org.uk To: Kent Overstreet Return-path: In-Reply-To: <1354121029-1376-23-git-send-email-koverstreet@google.com> (Kent Overstreet's message of "Wed, 28 Nov 2012 08:43:46 -0800") Sender: owner-linux-aio@kvack.org List-Id: linux-fsdevel.vger.kernel.org Kent Overstreet writes: > This implements a refcount with similar semantics to > atomic_get()/atomic_dec_and_test(), that starts out as just an atomic_t > but dynamically switches to per cpu refcounting when the rate of > gets/puts becomes too high. This will only work if you put on the same CPU as you get, right? In this case I would rather use RCU. It's clearly unusable for anything blocking (or not get_cpu) Normally RCU already handles the "ref count for short non blocking case" Is that really true for AIO? It seems dubious. -Andi -- ak@linux.intel.com -- Speaking for myself only -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org