Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261434AbVBRRY1 (ORCPT ); Fri, 18 Feb 2005 12:24:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261433AbVBRRY1 (ORCPT ); Fri, 18 Feb 2005 12:24:27 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:45526 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S261420AbVBRRYY (ORCPT ); Fri, 18 Feb 2005 12:24:24 -0500 Date: Fri, 18 Feb 2005 17:24:19 +0000 From: Al Viro To: Robert Love Cc: Andrew Morton , linux-kernel@vger.kernel.org, John McCutchan Subject: Re: [patch] inotify for 2.6.11-rc3-mm2 Message-ID: <20050218172419.GP8859@parcelfarce.linux.theplanet.co.uk> References: <20050210023508.3583cf87.akpm@osdl.org> <1108061239.18124.18.camel@betsy.boston.ximian.com> <1108744859.4667.7.camel@betsy.boston.ximian.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1108744859.4667.7.camel@betsy.boston.ximian.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 820 Lines: 24 On Fri, Feb 18, 2005 at 11:40:59AM -0500, Robert Love wrote: > inotify, bitches /me does "pick a random function, find a race" again. > +/* > + * inode_add_watch - add a watch to the given inode > + * > + * Callers must hold dev->lock, because we call inode_find_dev(). > + */ > +static int inode_add_watch(struct inode *inode, struct inotify_watch *watch) [snip] > + list_add(&watch->i_list, &inode->inotify_data->watches); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... and that is protected by what? > + > + return 0; Fix the damn locking, already. - 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/