From patchwork Fri Dec 4 22:36:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 65001 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB4Mb1Ic029921 for ; Fri, 4 Dec 2009 22:37:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755259AbZLDWgx (ORCPT ); Fri, 4 Dec 2009 17:36:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754401AbZLDWgx (ORCPT ); Fri, 4 Dec 2009 17:36:53 -0500 Received: from mga03.intel.com ([143.182.124.21]:4265 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbZLDWgw convert rfc822-to-8bit (ORCPT ); Fri, 4 Dec 2009 17:36:52 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 04 Dec 2009 14:36:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208";a="219017523" Received: from orsmsx604.amr.corp.intel.com ([10.22.226.87]) by azsmga001.ch.intel.com with ESMTP; 04 Dec 2009 14:36:58 -0800 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx604.amr.corp.intel.com ([10.250.113.17]) with mapi; Fri, 4 Dec 2009 14:36:57 -0800 From: "Davis, Arlin R" To: "linux-rdma@vger.kernel.org" , "ofw@lists.openfabrics.org" CC: "Smith, Stan" , "Hefty, Sean" Date: Fri, 4 Dec 2009 14:36:56 -0800 Subject: [PATCH] uDAPL v2 - openib_common: remote memory read privilege set multi times Thread-Topic: [PATCH] uDAPL v2 - openib_common: remote memory read privilege set multi times Thread-Index: Acp1MkkprWIUCAuiRPCj/kJGjbNLoA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/dapl/openib_common/mem.c b/dapl/openib_common/mem.c index b286f8c..ddf85a4 100644 --- a/dapl/openib_common/mem.c +++ b/dapl/openib_common/mem.c @@ -55,10 +55,6 @@ STATIC _INLINE_ int dapls_convert_privileges(IN DAT_MEM_PRIV_FLAGS privileges) access |= IBV_ACCESS_REMOTE_WRITE; if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges) access |= IBV_ACCESS_REMOTE_READ; - if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges) - access |= IBV_ACCESS_REMOTE_READ; - if (DAT_MEM_PRIV_REMOTE_READ_FLAG & privileges) - access |= IBV_ACCESS_REMOTE_READ; #ifdef DAT_EXTENSIONS if (DAT_IB_MEM_PRIV_REMOTE_ATOMIC & privileges) access |= IBV_ACCESS_REMOTE_ATOMIC;