From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751679AbbCSVA4 (ORCPT ); Thu, 19 Mar 2015 17:00:56 -0400 Received: from mail-yk0-f174.google.com ([209.85.160.174]:34297 "EHLO mail-yk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbbCSVAz (ORCPT ); Thu, 19 Mar 2015 17:00:55 -0400 Date: Thu, 19 Mar 2015 17:00:51 -0400 From: Tejun Heo To: Jeff Moyer Cc: Jens Axboe , kent.overstreet@gmail.com, Benjamin LaHaise , linux-kernel@vger.kernel.org Subject: Re: serial percpu_ref draining in exit_aio() Message-ID: <20150319210051.GE19657@htj.duckdns.org> References: <20150319173413.GU25365@htj.duckdns.org> <550B30D5.9080207@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2015 at 04:58:33PM -0400, Jeff Moyer wrote: > Do you really want to do memory allocation in the exit path? That > sounds like a bad idea to me. (Of course, now you're going to point out > all the places that currently happens, right? ;-) I think we just need a counter there - let everyone count down as they exit and the last one trigger the completion, no? -- tejun