Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1638703imm; Thu, 12 Jul 2018 05:32:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqzgjY+XnzixkV7GNyjsbHHHrdrXzPldjfPPMfBRSCn5TNUXQIh5ig03af8WcM0xLG96Iy X-Received: by 2002:a63:41c6:: with SMTP id o189-v6mr1973349pga.323.1531398746223; Thu, 12 Jul 2018 05:32:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531398746; cv=none; d=google.com; s=arc-20160816; b=YbmNEwSarm3fCs4kEPDVfQ5kAXGZLQYQptgU5MutLss+4jR78EU7J9PmdQkmwV0/Py uonUQcTyiYwnR75KKP1DJmoBod4ND9wJNZJzVUOYAEMdDsCFGZxewb29D3qJJIjoXmcx 1lsVY9esraz/3FCWjsBaGVAZcjG1jQgWvqEM0nt4kBKnS17LVTOrRL8lzOG0oUq4Xo4E ar8f2+XyLuCPtr5muEE0/0cBIz6ItljI63PE/dhpUphv/CBmvId9iD9Hmk5i539agT06 HWWVcwYoIj/qxoxzqwTMl/JS+CjHPfx/Iy50xlWVwIugYCXxQG4oAUSmZrku5qJda8db 6wuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=VyOqT71vbreKFO9pdwTJUKTknax5fUnb6GczQ7OHTdU=; b=ydP4OuxMvUu7l9FxqQv6C+eo8/tHrn0UtLFmylYxSQPz9IcZlCDUY4pwlVJwgeXYYZ U9x4h/CEs2JnKlPKRO0bOzi4oCzIk+NG1Jw//9f7tg+sgWoMiXqN89acMSmWKpDVBR/P 60zJSeejzCagnyxFvMRhdbvCRloezFXuZXDZkSfndD+sz/C3sQ3aD69PLMUwjYxYYWOt M1WUtSAtGtTfxfuH6IHd1tSJEi9wTvoLGM5PmXxTvjw7Kjf3cviDj6/VYJ66Zl+hCnxP tmI5oMM/fBtgScjGLHCtU5JjNRyfcfNeL67rLmDQGcsxyb4oQ6vZDpdHnT451oqC+IFL Au6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18-v6si21164001pgg.152.2018.07.12.05.32.10; Thu, 12 Jul 2018 05:32:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbeGLMki (ORCPT + 99 others); Thu, 12 Jul 2018 08:40:38 -0400 Received: from 14.mo6.mail-out.ovh.net ([46.105.56.113]:59589 "EHLO 14.mo6.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbeGLMki (ORCPT ); Thu, 12 Jul 2018 08:40:38 -0400 X-Greylist: delayed 1204 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Jul 2018 08:40:38 EDT Received: from player738.ha.ovh.net (unknown [10.109.120.75]) by mo6.mail-out.ovh.net (Postfix) with ESMTP id 9786B16A9DD for ; Thu, 12 Jul 2018 13:55:26 +0200 (CEST) Received: from bahia.lan (lns-bzn-46-82-253-208-248.adsl.proxad.net [82.253.208.248]) (Authenticated sender: groug@kaod.org) by player738.ha.ovh.net (Postfix) with ESMTPSA id 56ECE13DD; Thu, 12 Jul 2018 13:55:11 +0200 (CEST) Date: Thu, 12 Jul 2018 13:55:10 +0200 From: Greg Kurz To: Matthew Wilcox Cc: Dominique Martinet , Latchesar Ionkov , Eric Van Hensbergen , linux-kernel@vger.kernel.org, Ron Minnich , linux-fsdevel@vger.kernel.org, v9fs-developer@lists.sourceforge.net Subject: Re: [V9fs-developer] [PATCH v2 1/6] 9p: Fix comment on smp_wmb Message-ID: <20180712135510.17149f73@bahia.lan> In-Reply-To: <20180711210225.19730-2-willy@infradead.org> References: <20180711210225.19730-1-willy@infradead.org> <20180711210225.19730-2-willy@infradead.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 4732720260589197637 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtiedrgeekgdegjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Jul 2018 14:02:20 -0700 Matthew Wilcox wrote: > The previous comment misled me into thinking the barrier wasn't needed > at all. > > Signed-off-by: Matthew Wilcox > --- Reviewed-by: Greg Kurz > net/9p/client.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/9p/client.c b/net/9p/client.c > index 18c5271910dc..999eceb8af98 100644 > --- a/net/9p/client.c > +++ b/net/9p/client.c > @@ -447,7 +447,7 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t *req, int status) > > /* > * This barrier is needed to make sure any change made to req before > - * the other thread wakes up will indeed be seen by the waiting side. > + * the status change is visible to another thread > */ > smp_wmb(); > req->status = status;