From patchwork Tue Jan 10 19:15:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9508419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B1DCC6075C for ; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 738522621F for ; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67EF0269A3; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C74BE28458 for ; Tue, 10 Jan 2017 19:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940700AbdAJTRc (ORCPT ); Tue, 10 Jan 2017 14:17:32 -0500 Received: from mail-by2nam01on0059.outbound.protection.outlook.com ([104.47.34.59]:32933 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940777AbdAJTQC (ORCPT ); Tue, 10 Jan 2017 14:16:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=07E6Ksi97y9vy7VHzYLtRwTdVp7Zn8PunGuf82GmEKw=; b=aqpbZDJl7ZA/yqKdD/80GOE0W33KCpVlB/EJdoOfcgrGMCZgSHQsd4Qqeft09/kgjCAZPdgeqbV8x1L2RIjKBQ0xv6fMi9xAFWLUpID9FagacOuY8Wvr933oghnt/41fnd15x4jxWAV9Iy/n6G/QAKTWVWnSKYzGeAocG6Zxds8= Received: from BLUPR02CA040.namprd02.prod.outlook.com (10.160.23.158) by BY2PR02MB1410.namprd02.prod.outlook.com (10.162.80.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Tue, 10 Jan 2017 19:15:59 +0000 Received: from BN1AFFO11FD047.protection.gbl (2a01:111:f400:7c10::173) by BLUPR02CA040.outlook.office365.com (2a01:111:e400:8ad::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Tue, 10 Jan 2017 19:15:58 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1AFFO11FD047.mail.protection.outlook.com (10.58.53.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Tue, 10 Jan 2017 19:15:58 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id E8.87.01420.2D035785; Tue, 10 Jan 2017 11:06:58 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:15:54 -0800 X-AuditID: 0ac94371-47fff7000001058c-5b-587530d288fe Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id DE.48.16817.AE235785; Tue, 10 Jan 2017 11:15:54 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Moni Shoua Subject: [PATCH v2 13/15] IB/rxe: Fix reference leaks in memory key invalidation code Date: Tue, 10 Jan 2017 11:15:52 -0800 Message-ID: <20170110191554.17359-14-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110191554.17359-1-bart.vanassche@sandisk.com> References: <20170110191554.17359-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5ke4lg9IIg7ZJGhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZXzZNYil4wFlx+EQLUwPj ZI4uRk4OCQETiddd31m7GLk4hASWMklc+/6BCcLZwSjx5OA7dpiqa41v2SASGxklvp1ZxwyS YBMwkvj2fiYLiC0ioCax6dUisAZmAUeJS9M+MYHYwgKhEu83nWIDsVkEVCX+nz3ACmLzCjhI NP75zQyxQF5iV9tFsDgnUPzDgvtAvRxAy+wlpqwyhih5ziKx4q8ARKugxMmZT1ggVklIHHzx AmyMkIC6xMkl85kmMArNQlI2C0nZAkamVYxiuZk5xbnpqQWGJnrFiXkpmcXZesn5uZsYIUFc uIPx9W3vQ4wCHIxKPLwdz0oihFgTy4orcw8xSnAwK4nwpuqVRgjxpiRWVqUW5ccXleakFh9i lOZgURLnvRj9MUxIID2xJDU7NbUgtQgmy8TBKdXAGDjh5NNtFspbfi1rDomxXlp+UVRFK+X/ bsUi42kXBT5MO/a5Ny+Zn31j9O6H4TGz//xJjZ8e0mB8WUid0TE31jsvKKCR8cKyg6cWLrR8 1Bv6NlWwZt3WuHQT/tQw9bKLs7/c1Y37x15/9fPqfb88HkzU/Bh1I6zKUCTz4OSTE5kruppN 7hkuU2Ipzkg01GIuKk4EAFsU3pheAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTfeVUWmEwYI/mhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZXzZNYil4wFlx+EQLUwPj ZI4uRk4OCQETiWuNb9m6GLk4hATWM0pcXnGSFSTBJmAk8e39TBYQW0RATWLTq0XsXYwcHMwC jhK3z4eAhIUFQiXebzrFBmKzCKhK/D97AKyVV8BBYurFX8wQ8+UldrVdBItzAsU/LLjPBDJG SMBeYsoq4wmM3AsYGVYxiuVm5hTnpmcWGBrqFSfmpWQWZ+sl5+duYoT4OXIH49OJ5ocYmTg4 pRoY7awuBMi/Ky969PnL1Z+B+RdfLen7IKytf/71sa99W+SZpS+svi4o06ViPUWWOfNFy9uU 2Z9+C2hPPLifnedEUpu95ZMPr97EihdJWWXYP51jeT/S8ltmOV/GdONPgTXFCry3LIq+TLFv msm7OfqDY8uXEo2Vh88FbftgqFarNemCbd5NtscKSizFGYmGWsxFxYkACR3anaMBAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(189002)(199003)(76176999)(110136003)(33646002)(50986999)(5003940100001)(92566002)(626004)(2906002)(4326007)(1076002)(305945005)(106466001)(356003)(47776003)(5660300001)(50226002)(8936002)(2270400002)(54906002)(68736007)(36756003)(6916009)(77096006)(81156014)(8676002)(50466002)(81166006)(86362001)(48376002)(97736004)(38730400001)(2950100002)(189998001)(69596002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1410; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD047; 1:+Nzb+bgGkn5FtejhBSyiSeSuBY5+Iqm9MLjdb8AWoQgafa/OGfse58oSVKVlIABpMlj+aagT2ok1/D1Ec9FcElgrYp/FHE3MA1z+akge6F/unNVBSP0kudwzTySIj5izA12enos+eXN+9BJcwtOrjMUNqMZsF4VtlTQ9c4myqhBNfH5UyzyN58kfB2x+8MOpjatG4QdDYXEZET9JTgWXF3B1J9wvml49zzmxbX4zMnhemVADI2UeLKaghwVb5sEhQI7kyw3Yv/zF4K0p8+UCovnEZlVY2TemBSX7SIGCEXfiX7Dl+mbELlQIGLdBtWE01Zi0ifXfqaXCJLNQ4hznqW57grxWitZ/+LOcndbQ5f8SrWt7bheVcnVdKlIf73hDTRNlVxJXY0LOgXjSKIOkoQpIg0RGSJcViGzTAUd418P0D63gIbwr8pgjvXz9bUDjXO9snWBklpARoHmh63e/eRv/8THB/lpBZanyXQ7ry/n4XptdLOfiT3jYXh/wwQv/XRtqG+KJZnnRYwHWd6sufA== X-MS-Office365-Filtering-Correlation-Id: 9d2390e8-5183-4e2c-7b09-08d4398d1bed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1410; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 3:583pYQxa+Rg/52eWum2+Bcnfk3qA7eHLqnHxmHlNilNx6KW4CqtJXxD9cbUkMpyCflf1zOcjQxfEnRyiOCTVcNTLrJ1OEkr6N6HHn0851UP3MxJl1x4dBb59o5nAYlxA6iRlkHg/kRRDUMymtT0Qou/L74kqmU9UmW6zx+F9fCL4vKNVEVb66R3SsdLwIwaqxWiqCYuu8Q4kkbFQhl43C2un9G8/l4IrE3trKJ7Ux3HrSoWxqCu/O6wzdu0oeMXFQwG3cD70usdOl40WihHH+PDhSV6jUqTD8bUg1utIYmIPgMvucujxYt4b1f7Pq2zXO9Ran9HrNfB1ITWtjIgEOy05Nkjj83DTk+EN7EMQSzbg1o4m8yxoaUAyJmppK+yDCdP3xr+ngKzpsZYeOzxA9A== X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 25:ow3wYxoJ9S5CpxLQ5Iz34URurTsJAitYmKCUn7GiBKy4a9Xrq5p5lTXJQC+ObnWc4LP+2H+zJAgkS1D+ySOWkmqH0OBUUo6WZPCn+mZ8kimtQ2vjGc7XRRu/HGmnhD10oY2vZzXq2zFyCR5pMV8nUW0EFrfyJO4Txm+F1wiqPKFeSP6P8vSJSdt7gn9TlBD32BFexn9Sbb9EbK4pExjHZyC/W0rXXkxd6rWv+Xhsh7J5+IRFmvpWlu0AFvP3F29M9fHY9USQmerXpMV8JQiIOh5Y30k/meb+1JwUtttX02sp2UdLsGWS0iCEzT4JL6G6qsrKI+rAxs0oNRuSQXm0VndqgfzLG+L7fvqMKPlYBTTQDRLplGVZhStWjeNRXREkXDzc36Qzq63C/jWoeYaw+4BigGnbjkTxrWfbMlnoS++Ck+YsWFKSguTSaS9g/GuHgD6V6vGfRxPUbykWVdmPrpC3KwmlAM5w/9ZuWLshSI0lfRluHmW+s1weW7vkwDLbOjL+Me6Y8I/M21xv/mwkinOFI4IVXasK6ziiKDjzxXSeS+no7QZxiNmcmDfes8vV1A0udKbVCZ24mKzByZLuModJwTCZOCUcushlX2K+cIIOBMb3WC1ChTGyKAKSPpL86bch0m8MpdNWihSpD1TDfhhjFqmBwjamhb/Ktf4U4Gz6l4vwFmKlVcQs4mqVVRDFyrNNm/yZyyRBMVt5+3M9YygqrscdrKNvSRRQ3ujVnLbanfvJAd2ZyQUydWzQiqu3GceJldkP9TNZbWoDJxj7NolDObeKYoLNyHGeEnHqDKP8NIQK7MFN8tdWVEfRPY+yGZExlJNWtRk2jss5m2wizw== X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 31:ZireCwsGpldX3maRj1afJir9FHYly+uq6zxJHK1pCxWN+PCpXDm/sRosQ4ZVoDJ57eETULpd5GyJt6L44Jr5w4Rx20eElE8RuAkdn+eKHGyPJjXPqw6ZEUggPmyj1Q/tNOS5vpNXdLUn73g9E/YzFYb7Pd8mmyrCj3j6NPGbCAGEMrWXcUDsXSFKoh1a2UQ/fQpc63be2qwr7rnfDUGrsjUhBFQpIBgothNnJEKDRdyjhe+1AAm5HQTddfkIuBC4YqZ5vdF/dSQLBgWVkwXg7g==; 20:nAtVpoYRb9+RbUZSM95Oqtne5bM5vvKKq2Lk9hY2coqgl5TZxc6uB7R/87PyAKoA7z1OfW0aieVJ58di8rXbbpUBh8yFPnbBBnndzWP5kXkXL8EYaTB40O/ETNzeBMEg/KsDMw/OLD2x97b17hlCypy0YSvrFdqtDWazQ2aOwm9iyGtLCOS9zCxzAJi3oE4NCIRQvFpuTYehfU/fL2TTYKH0cIpQ4BWLx4e6dcFOfMiOWqTM7HFqKkr+miA1XA2w3nqBnMDFdm+ao66W8j8KlpZJtCtTiux//eVgY8sjIHEudSNgDD9NsRhnI01P4Q1cNNAIdrhT/2oY5aDww4IxBn2cOVQFIljgWHzIPOmLqtGjHmNiX2IANIPxPqR/rLfHfqkg/B1+Nl87HknAMGs3HeCkWw4gpB8msqyRYduIJ5QCAnIFxzKBFRaqwnVTb8J2A4OtMM0VrFBThOWaWxI8muhk1NJ0z2NwGNxniS5oV5KQGsyYd29fKWb9UZ4lQuS2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY2PR02MB1410; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1410; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 4:RzbjOQTE+whAbRMmqw05uOL4OKVeU0vqk7nr+dXamKznMGN9+nfn/5bCNgiUZWYLW9+TL734ZAiMa1gO2c8nVFvej23uYC1z6rf4w28jXJunVWtBbpfDfK5SNdcv3qYtbNEn63v+jXZO01r61llP/owa4JtbpD6PJtjehhTWE7PzCN3ooUudGTWHJFnhGomk3Ry9FjOlMK7fIoEYkBXBEcvdkjdKbT65/EkwvZQJrkIXKqogi+JatONYqBF+1R+r4AlHfdeVftqjH58+zDwuiSZdZa3ZrQ2s7ngZlRjV/SLGWWTDANMiTIufdyBmc+K7nEKkLMak/PPdmyzGk0FlMbStctT8/4MmujKAOyBiNkEAMYO25cqoj36Y/hMCkVQ25mPE3DgvJ3VnBycBCapP5PrU2iP/pQg+bJAi/7xbFLiTMZWFqUKjA44mCvl72BHVbUCRXnXfjEHyO+ZehrUg+Zy04jFuGpQobCMQuJacVmrv9EX9wHkqG8xKCHk/FyAsr7aJXJrjN4qMlpBTuSHZDtfspaMY1Si3YOvdGMH/1Jh6z2NiKDHVcRmsjHgAbXUcvERATkZUAnXPBAGIBmLkkQOvgz8+4S1PlizhtjSyV5TeVAnPrRw3//jzKoQ5T00/1/FJcO7rwQatkTJIdhn9Xx26edZJ4+R0qKMNdNsHBeQUMzUobv6Hz0WHiFJ47li36pnIGnqb3PJBffbgxrguBg== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB1410; 23:2+l3mJFeU9+ldKfGby7rguEMi5BR4igG/m/NGaZaU?= =?us-ascii?Q?YASDVynZvezfh+0KxJ6OKWYIkCMqN6sQSjcqFEudccFoWo3imizrUmTJid6/?= =?us-ascii?Q?ltpMMDu70a0oWSk7mB69KWiUei9LXkvsbslBJtn+gXZm9SAkY3MwHh6gRUBT?= =?us-ascii?Q?bzgc/WR/07F8w47S8lBsSyqWnrlcJy61amPNlz+klVjpzz7O5gfnppPht13i?= =?us-ascii?Q?LvfG7vwOYwd0D9EgC3riE3L3rAKM9H9cEs6HmK7G9hu/Yc3392UfXQXNESe5?= =?us-ascii?Q?W46tcS2pWutk85JW+J2iwClPGcRI/R83i23LT8eVjbznlF0t5+nAEr1/rJiz?= =?us-ascii?Q?AAZmErBNFVtCshM30EuWEjnZcmFR1fYwZArWuoCUkYWEObyA8sOR5ZvxLFh9?= =?us-ascii?Q?oyILWgw0k07ZytghltIpLtx+0VMqRuK37bLkH/T00U0Mt1yd0XhB7grQZjfZ?= =?us-ascii?Q?DwScOYhV4sSLw4LTOAkTD67AXRAxihDwU09T2BCAVehK/tWSwtrJ81tit/Ah?= =?us-ascii?Q?+LpmANkcrhTKVLP3rmsckNJDrdUfnWsdH+GHqDR129i9SMpqHXwR30BNFi70?= =?us-ascii?Q?GsWwD8xCeVjVTSDWuxwxqV3ZfzhiGzePpG7td0/7e1NJ6ACetKm9czXIohDN?= =?us-ascii?Q?fmB8mdpipCTLtW1yLwUfG4NGVLOcPMpcErq23EyD4LAFPE39bjUeicsr3MyZ?= =?us-ascii?Q?ndElQodHSr3y9y0ey/iuyhncrXeYNDyRnA/syId5HkpMJ8IYLJJu65rYCsLX?= =?us-ascii?Q?kdcq/qiTjAo7XKZcHzpItzmKWATLdJjifV0rXO63dONaf+5SWL/gXI80oo7v?= =?us-ascii?Q?Tihih6ZdqOzC1R3LzkmMG4fez16Uda9HaUOtwJGG1zCY5LUZGbJZg/mM3Alx?= =?us-ascii?Q?Kz8AYqMw9dFa1xRRIEG250J2vKwkcRiKmGmCAA/0FbPriDlgZGsdSV4tXKs4?= =?us-ascii?Q?1q3tSLi3XMaQPgp6n2AY1G6we93GdgumfowRFlmtxCROVX7oIDVWHzbliAgG?= =?us-ascii?Q?LEtmEt006HoqcX2ovfM06YruWTxGejK+zIu4JIS4mh+bY04JspwmF4uZXvWH?= =?us-ascii?Q?+wf1s3O7Yb3VdJ1aBQOAnuo2PoVSizGEuJOd1F0U7uENAFiU5d6cSE6FkFgT?= =?us-ascii?Q?I8FIH/k8xM=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 6:hSYLpLt1Ary49JPdp1YbPdQrI4gY0cBDVoFGF9WsI3L7yy6q/8G/0HZEAPUkxFb/PEg605MtyDCPTy/Xo+uv/DRbRARdZDQ69TVxY8/6thpjZLz53+NjqihXeWlZpy65em8U2B9Fm4fpK50ycm+Ug9RSlbmsHeG6JMy0PMSoQas8vMBMKSUwGL5QaYUx2KJalp6AkFgghXff8oEsjrTBPOIQ8iU/7IaaSED16IXDkmuZRtqdxLJCaBz6WYetrjnVF8rxXi0Grikzj1jZ0aDtJc2+P8A9S+aP4YpIbytUX9GbGov31AtknusDgAea8PmAWLpzKsS/NUksgAVjfgYfEJt0+piC2XwxTZzG06+u06G/i+0zeu0saiAuvbcFnowyJcWwc6sNc4+xAFqLDNjiTjBhyEj0X+xI2QRWVtClU1TQ2qkgc1bLqKA12LOTSItOOyanKtrphMDI08GX3iZrzw==; 5:/O/Q2nzLbSo0q22I2rQGsjK0SMsPFmOacfrlT2EUQ8fO/xDkaza2IhVagIhsMk8VF+XAMvc/LKBN2B/oSoMMRJclEHfAwVtO61W/s8MyAT3NPhSiBWtb+DwHIA0rpNxPcFC58a1/OxshCVRkzlh8s9z2i72yUlK4YdlLekclRq4=; 24:7xJERdOx5fnXAxiqZzQpQaihJgepnJk1yQRZm+hDbNvzWxiUm+jWWm7ufV55dPUsO3IuJZS8S1HsQv72OgI1RMcKc+dHMv5h5qdMuV6w/tI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1410; 7:JQTWeBJX2nMPtW94MF1jiPNsALKe0Rzg5rlh44CnXfXg6vN0z+K0SWorKglOYa/U6/z7YxMssDXrFiK27rl8DOO40GEgBdVW2T2azPXKVaNGnNX3cawWCv3pcS6z1YepjhJQMeiXA38a9dj/w9yc+jTggrmeQzBB8MZPxVRsyAG7/zflVugnOekqA5PiqUYZNeO7B6FYXhMAavqFeFK8wEzRWKmu882p+1690F/dxpkOIkWcUN3hzSqDw56iL6m249x/HSM1vv+rsNiFSAGM9/+mQpweTiQ1eb9pOpPXfMG9WRtJMRuLmBCwvY0TiFb/FcZqU5E6YwCov6yU8U43UljFZYUvHlEKGpylyHLAJW1VHe+D6NisVHafVrUShJ9Zoto9u/XqxWEv3/UXd1n4GzSheBvcblYqskmhngmkZKPXWvsyOXif1jGmlEvWrPXKDDlJasOVRIK9oYMMoO5uMg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:58.3902 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1410 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_req.c | 1 + drivers/infiniband/sw/rxe/rxe_resp.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index d62be4828899..512e74326b16 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -635,6 +635,7 @@ int rxe_requester(void *arg) goto exit; } rmr->state = RXE_MEM_STATE_FREE; + rxe_drop_ref(rmr); wqe->state = wqe_state_done; wqe->status = IB_WC_SUCCESS; } else if (wqe->wr.opcode == IB_WR_REG_MR) { diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 60d78f45aa04..05f374986cea 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -907,6 +907,7 @@ static enum resp_states do_complete(struct rxe_qp *qp, return RESPST_ERROR; } rmr->state = RXE_MEM_STATE_FREE; + rxe_drop_ref(rmr); } wc->qp = &qp->ibqp;