Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965005AbaD2Sj1 (ORCPT ); Tue, 29 Apr 2014 14:39:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14214 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756785AbaD2Sj0 (ORCPT ); Tue, 29 Apr 2014 14:39:26 -0400 Date: Tue, 29 Apr 2014 20:39:15 +0200 From: Oleg Nesterov To: Andrew Morton , Benjamin LaHaise , Kent Overstreet Cc: Al Viro , linux-aio@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] aio: change exit_aio() to load mm->ioctx_table once and avoid rcu_read_lock() Message-ID: <20140429183915.GA32513@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Completely untested and I know nothing about aio, thus needs an ack from maintainers or should be ignored. But exit_aio() looks "obviously unnecessarily overcomplicated", I was really puzzled when I looked at this code by accident. Kent, could you also explain kioctx->dead is atomic_t? This looks pointless? afaics atomic_ buys nothing in this case. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/