Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:54404 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754520AbcGKRuB (ORCPT ); Mon, 11 Jul 2016 13:50:01 -0400 Date: Mon, 11 Jul 2016 18:49:56 +0100 From: Al Viro To: Linus Torvalds Cc: Andreas Gruenbacher , Jeff Layton , Thorsten Leemhuis , linux-fsdevel Subject: Re: [PATCH] posix_acl: de-union a_refcount and a_rcu Message-ID: <20160711174956.GX14480@ZenIV.linux.org.uk> References: <1468249288-16086-1-git-send-email-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jul 11, 2016 at 09:50:21AM -0700, Linus Torvalds wrote: > On Mon, Jul 11, 2016 at 8:01 AM, Andreas Gruenbacher > wrote: > > From: Jeff Layton > > > > Currently the two are unioned together, but I don't think that's safe. > > Ack. That does look fishy. Almost anything else can probably be > unioned together with the rcu list, but *not* the refcount that we > might want to look at during the rcu grace period. > > Al, this is your code (from long long ago). Want to take it through > the vfs tree, or should I just apply direectly? I'd like to have your > ack regardless, but the fix looks ObviouslyCorrect(tm) to me. Applied; the mess had been caused by get_cached_acl() switch from ->i_lock to rcu_read_lock. The code is mine, but relevant part is fairly recent. I'll send a pull request tonight, with that thing included.