From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH 24/24] sysfs: In sysfs_add_one fail if the targe directory has been removed. Date: Fri, 29 May 2009 18:18:14 +0900 Message-ID: <4A1FA856.6050407@kernel.org> References: <1243551665-23596-24-git-send-email-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Andrew Morton , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Cornelia Huck , linux-fsdevel@vger.kernel.org, Kay Sievers , Greg KH , "Eric W. Biederman" To: "Eric W. Biederman" Return-path: Received: from hera.kernel.org ([140.211.167.34]:42661 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754276AbZE2JS5 (ORCPT ); Fri, 29 May 2009 05:18:57 -0400 In-Reply-To: <1243551665-23596-24-git-send-email-ebiederm@xmission.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Eric W. Biederman wrote: > From: Eric W. Biederman > > If a bug in the upper layers results in someone attempting to add > to a sysfs directory that has already been removed, warn about it > and fail. > > I don't believe this has ever happened, and it certainly never should > happen, but be strict to avoid errors creeping in. > > Acked-by: Kay Sievers > Signed-off-by: Eric W. Biederman Acked-by: Tejun Heo -- tejun