Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755305Ab1FTRDK (ORCPT ); Mon, 20 Jun 2011 13:03:10 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:46437 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088Ab1FTRDH (ORCPT ); Mon, 20 Jun 2011 13:03:07 -0400 Date: Mon, 20 Jun 2011 18:03:05 +0100 From: Al Viro To: Linus Torvalds Cc: linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] get_write_access()/deny_write_access() without inode->i_lock Message-ID: <20110620170305.GW11521@ZenIV.linux.org.uk> References: <20110619235147.GQ11521@ZenIV.linux.org.uk> <20110620161352.GT11521@ZenIV.linux.org.uk> <20110620164211.GV11521@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110620164211.GV11521@ZenIV.linux.org.uk> 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 Content-Length: 606 Lines: 13 On Mon, Jun 20, 2011 at 05:42:11PM +0100, Al Viro wrote: > BTW, atomic_add_unless/atomic_inc_not_zero is done as read/cmpxchg on > everything I've checked, including alpha and sparc. I suspect that > it's seriously suboptimal there... Actually, on sparc it's probably fine. alpha, OTOH, probably ought to switch to something similar to what ppc is doing... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/