From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f68.google.com ([209.85.214.68]:50551 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbeHVXlW (ORCPT ); Wed, 22 Aug 2018 19:41:22 -0400 MIME-Version: 1.0 References: <20180822085522.GA14354@veci.piliscsaba.redhat.com> In-Reply-To: From: Linus Torvalds Date: Wed, 22 Aug 2018 13:14:51 -0700 Message-ID: Subject: Re: [PATCH] ovl: set I_CREATING on inode being created To: Miklos Szeredi Cc: Linux Kernel Mailing List , linux-fsdevel , linux-unionfs@vger.kernel.org, Al Viro Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Aug 22, 2018 at 12:58 PM Miklos Szeredi wrote: > > > So I'd like some clarification on this point before applying it. It's > > possible that the spinlock is required, I just want to understand why. > > I added the spinlock, because it's cheap (new_inode() already pulls it > into L1 cache) and because it's much harder to prove that lockless one > is correct than just adding that locking. Ok, thanks, looks good to me. And looking around, I think it matches most of the other cases of us setting those I_NEW and I_CREATING flags, so I guess it's good from a consistency standpoint too. I just wanted that clarified, but I'll just apply the patch directly. Thanks, Linus