From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754596AbaAHBA5 (ORCPT ); Tue, 7 Jan 2014 20:00:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:60933 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753907AbaAHBAv (ORCPT ); Tue, 7 Jan 2014 20:00:51 -0500 Date: Tue, 7 Jan 2014 17:01:20 -0800 From: Greg KH To: Tejun Heo Cc: linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, stern@rowland.harvard.edu, JBottomley@parallels.com, bhelgaas@google.com Subject: Re: [PATCHSET driver-core-next] kernfs, sysfs, driver-core: implement synchronous self-removal Message-ID: <20140108010120.GA1278@kroah.com> References: <1389117590-25705-1-git-send-email-tj@kernel.org> <20140107214119.GG3231@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140107214119.GG3231@htj.dyndns.org> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2014 at 04:41:19PM -0500, Tejun Heo wrote: > On Tue, Jan 07, 2014 at 12:59:38PM -0500, Tejun Heo wrote: > > This patchset improves kernfs removal path and implements > > kernfs_remove_self() which is to be called from an on-going kernfs > > operation and removes the self node. The function can be called > > concurrently and only one will return %true and all others will wait > > until the winner's file operation is complete (not the > > kernfs_remove_self() call itself but the enclosing file operation > > which invoked the function). This ensures that if there are multiple > > concurrent "echo 1 > asdf/delete", all of them would finish only after > > the whole store_delete() method is complete. > > Heh, dang it. Please ignore this posting. I thought I could get away > with this but apparently cgroup would need something a bit more > flexible. :( Ok, now dropped from my queue. greg k-h