From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waiman Long Subject: [PATCH v4 0/1] dcache: Translating dentry into pathname without taking rename_lock Date: Mon, 9 Sep 2013 12:18:12 -0400 Message-ID: <1378743493-33546-1-git-send-email-Waiman.Long@hp.com> Cc: Waiman Long , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Chandramouleeswaran, Aswin" , "Norton, Scott J" , George Spelvin , John Stoffel To: Alexander Viro , Linus Torvalds Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Change History v3->v4: - Extract the begin and end blocks of the rename_lock sequence number check into helper functions to make the code easier to read. v2->v3: - Simplify prepend_name() to blindly copy the dname over until it reaches a null byte or the specified length leaving the sequence check to handle error case. v1->v2: - Check for internal vs external dname, taking d_lock only for external dname for safety. - Replace memchr() by a byte-by-byte checking for loop. - Try lockless dentry to pathname conversion 3 times before falling back to taking the rename_lock to prevent live-lock. - Make code re-factoring suggested by George Spelvin. Waiman Long (1): dcache: Translating dentry into pathname without taking rename_lock fs/dcache.c | 196 ++++++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 133 insertions(+), 63 deletions(-)