From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754942Ab1ASW11 (ORCPT ); Wed, 19 Jan 2011 17:27:27 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:59572 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753700Ab1ASW1Z (ORCPT ); Wed, 19 Jan 2011 17:27:25 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=J+b2K6oFeLcZ5sZf9zmomgnEcL3tReWTIxsIc1zU6fCIECbhFdvQIp5t1INzJ9UD3H mwdGxizTgyZxxHhkvYVKgFaifbt9xZcZrKsyOUu2G925F/+J7ohuPTrl3ck4QFVVY3ad rnqPG45juy1fHy6sMbuc/5p0vElZ9SmIqKVmc= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 19 Jan 2011 14:27:24 -0800 Message-ID: Subject: Re: [PATCH 17/46] fs: Use rename lock and RCU for multi-step operations From: Yehuda Sadeh Weinraub To: Nick Piggin Cc: Nick Piggin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Sage Weil , ceph-devel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2011 at 2:42 PM, Nick Piggin wrote: > On Wed, Jan 19, 2011 at 9:32 AM, Yehuda Sadeh Weinraub >> There's an issue with ceph as it references the >> dentry->d_parent(->d_inode) at dentry_release(), so setting >> dentry->d_parent to NULL here doesn't work with ceph. Though there is >> some workaround for it, we would like to be sure that this one is >> really required so that we don't exacerbate the ugliness. The >> workaround is to keep a pointer to the parent inode in the private >> dentry structure, which will be referenced only at the .release() >> callback. This is clearly not ideal. > > Hmm, I'll have to think about it. Probably we can check for > d_count == 0 rather than parent != NULL I think? > That'll solve ceph's problem, don't know about how'd affect other stuff. We'll need to know whether this is the solution, or whether we'd need to introduce some other band aid fix. Thanks, Yehuda