From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759229AbZABTy7 (ORCPT ); Fri, 2 Jan 2009 14:54:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751692AbZABTyv (ORCPT ); Fri, 2 Jan 2009 14:54:51 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:58566 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179AbZABTyu (ORCPT ); Fri, 2 Jan 2009 14:54:50 -0500 Date: Fri, 2 Jan 2009 19:54:46 +0000 From: Al Viro To: Oleg Nesterov Cc: Jonathan Corbet , LKML , Andi Kleen , Alan Cox , bfields@fieldses.org, xfs-masters@oss.sgi.com Subject: Re: RFC: Fix f_flags races without the BKL Message-ID: <20090102195446.GJ28946@ZenIV.linux.org.uk> References: <20081229041352.6bbdf57c@tpl> <20090102184232.GH28946@ZenIV.linux.org.uk> <20090102190902.GA25969@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090102190902.GA25969@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 02, 2009 at 08:09:03PM +0100, Oleg Nesterov wrote: > On 01/02, Al Viro wrote: > > > > Bloating with mutex is over the top, indeed, but why can't we simply keep > > a pointer to fasync_struct in there? Do we ever have a struct file with > > several fasync_struct? > > pipe_rdwr_fasync() ? Ho-hum... Right you are ;-/ FWIW, it's still bloody tempting to try. How about hlist from struct file through fasync_struct? Possibly with reference from fasync_struct back to the queue it's on, while we are at it - would make fasync_helper simpler...