Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7598222imm; Thu, 28 Jun 2018 06:28:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJqjql4xpUVDSGJqI2xFL+q8UdWRJiiggN9HIsVb4hg3TQks7exQp+hFkx2rsoYCSFfL0Hy X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr10537447plp.21.1530192516311; Thu, 28 Jun 2018 06:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530192516; cv=none; d=google.com; s=arc-20160816; b=UiHLCnVPfvNkB6IhJAyMIIsxKleYPXREtdyvzWSKowZQ9VlIe8AbHGumKaf/HtjMGl BaqlxzZPEQc0bIdsHzNkafUUP0tnSG1mZaZuyBqcUJzk/RDaY+TprqQOly/C03irYvTT vWvKpeWKQ6y84xiEy8Cw4pfrb8Z/kQvFISy3eXxHZl6gh6yvugciqca0RM6lj3mjipsY tzYkIVCsSi+W8DeR1uZg9XYZ1t1mgxcAjPUmb30/A02g6cIow8ExRP2TCtRB90DPs+qM zw8vAemdJLIJxOBlGtJ+4SlbF4nIrilmw6PyGX8mILkjZoW0pWCipO6Y7NZtG2ot2nyG YwNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=u4kDLeHjogkxVPPVZFNy9kKBP7gADz5yfE3nU2RpLJo=; b=JR8ybVyKdc6LGMcD9AtHX/28z7kWJaDYEb4i9FqLRuP+KhIv9FdwXV8LotjPCF5uSw Ic2ZK9YFsIiDuFW5i1i+hq9aEoJRukHlog6oV5OFTN7XJk5ns18rnSSS/m55nEioVbnE o9IoxcCwcBxy+Kg+5Ue0zfLTvTPJVKE1vCQZwM8Dr8Tpxcb3v+TB4Qq3GDFwfOTy0Xiq gPpK6CHLHvfT5qb7JZjAGd5OTn6JZpgPpmPLw15iZuDALKlin+FPn2nzJzex5fiBp1SI 0rPh+KhGPi6k0xSHhrsSg/XEyzXq2dC8fyth2nvC4eHY0ol2oSpyL1JIm6d/W/WcgYyi J2ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KLVz1hRt; 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 r59-v6si6579368plb.187.2018.06.28.06.28.22; Thu, 28 Jun 2018 06:28:36 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KLVz1hRt; 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 S966159AbeF1N1L (ORCPT + 99 others); Thu, 28 Jun 2018 09:27:11 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49834 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753810AbeF1N1A (ORCPT ); Thu, 28 Jun 2018 09:27:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=u4kDLeHjogkxVPPVZFNy9kKBP7gADz5yfE3nU2RpLJo=; b=KLVz1hRths1n4WTeVTTqGJK2t Ev8IDk13/KY3TAsGJb/bzDePKbQmBPG7n2NLj5trNNsNxcZMSAJcR966IhGwaDskvfVC35Aa+Fi2J 4c2RjvICRJIsA436ORPGwdOBPWhat62r6U9CFCrsw46h+Dh9dngTFsrdQUJwPgPz7nmfYwvvMuACF HS41moSHM49JPB1ZI5Ugui8yj+0eHfA8LbmTfc3ztp2NvzWSNr5XRj36Nr1Jf08S0sL0XZfI1+R96 ZHobmpSjqYxsZaSUUF8DDcpsExzfLGrZqGqzyreemSAhSPGQ5uo3x/7ftWxc1lEGKIKJni3GBa9ZD XKFWsSw/g==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYWwt-0000rr-HV; Thu, 28 Jun 2018 13:26:59 +0000 From: Matthew Wilcox To: v9fs-developer@lists.sourceforge.net Cc: linux-fsdevel@vger.kernel.org, Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , linux-kernel@vger.kernel.org, Matthew Wilcox Subject: [PATCH 4/6] 9p: Remove an unnecessary memory barrier Date: Thu, 28 Jun 2018 06:26:27 -0700 Message-Id: <20180628132629.3148-5-willy@infradead.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180628132629.3148-1-willy@infradead.org> References: <20180628132629.3148-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And add a comment about why we don't need it. Signed-off-by: Matthew Wilcox --- net/9p/client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/net/9p/client.c b/net/9p/client.c index 602f76de388a..2dce8d8307cc 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -436,13 +436,9 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t *req, int status) { p9_debug(P9_DEBUG_MUX, " tag %d\n", req->tc->tag); - /* - * 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. - */ - smp_wmb(); req->status = status; + /* wake_up is an implicit write memory barrier */ wake_up(&req->wq); p9_debug(P9_DEBUG_MUX, "wakeup: %d\n", req->tc->tag); } -- 2.18.0