From patchwork Fri Nov 30 18:09:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Adamson X-Patchwork-Id: 1826371 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C91C53FC23 for ; Fri, 30 Nov 2012 18:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759041Ab2K3SJz (ORCPT ); Fri, 30 Nov 2012 13:09:55 -0500 Received: from mx12.netapp.com ([216.240.18.77]:36556 "EHLO mx12.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753656Ab2K3SJz (ORCPT ); Fri, 30 Nov 2012 13:09:55 -0500 X-IronPort-AV: E=Sophos;i="4.84,192,1355126400"; d="scan'208";a="282974653" Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx12-out.netapp.com with ESMTP; 30 Nov 2012 10:09:54 -0800 Received: from fedora-64-2.androsad.fake (vpn2ntap-367631.vpn.netapp.com [10.55.77.205]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id qAUI9qTx003578; Fri, 30 Nov 2012 10:09:52 -0800 (PST) From: andros@netapp.com To: trond.myklebust@netapp.com Cc: linux-nfs@vger.kernel.org, Andy Adamson Subject: [PATCH 1/1] SUNRPC: release clear_bit memory barrier Date: Fri, 30 Nov 2012 13:09:45 -0500 Message-Id: <1354298985-2344-1-git-send-email-andros@netapp.com> X-Mailer: git-send-email 1.7.7.6 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Andy Adamson Signed-off-by: Andy Adamson --- A cleanup patch. net/sunrpc/auth.c | 1 + net/sunrpc/auth_gss/auth_gss.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index b5c067b..8b76753 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -225,6 +225,7 @@ rpcauth_unhash_cred_locked(struct rpc_cred *cred) hlist_del_rcu(&cred->cr_hash); smp_mb__before_clear_bit(); clear_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags); + smp_mb__after_clear_bit(); } static int diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 909dc0c..92a7d6d 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -126,6 +126,7 @@ gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx) set_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags); smp_mb__before_clear_bit(); clear_bit(RPCAUTH_CRED_NEW, &cred->cr_flags); + smp_mb__after_clear_bit(); } static const void *