From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755849Ab2DQSAB (ORCPT ); Tue, 17 Apr 2012 14:00:01 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:43396 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755591Ab2DQSAA (ORCPT ); Tue, 17 Apr 2012 14:00:00 -0400 Date: Tue, 17 Apr 2012 18:59:55 +0100 From: Al Viro To: Linus Torvalds Cc: "J. Bruce Fields" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [git pull] vfs and fs fixes Message-ID: <20120417175954.GV6589@ZenIV.linux.org.uk> References: <20120417052511.GU6589@ZenIV.linux.org.uk> <20120417162216.GB27426@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2012 at 09:33:06AM -0700, Linus Torvalds wrote: > On Tue, Apr 17, 2012 at 9:22 AM, J. Bruce Fields wrote: > In fact I don't think you need even that much. Just a simple > > touch a > ln a b > mv a b > > looks like it should deadlock on itself, no? source and dest inodes > will be the same, so the mutex_lock() will just deadlock without even > any ABBA race. No, this one will bail out much earlier.