From patchwork Tue Jan 18 07:35:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 12716037 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F575C433EF for ; Tue, 18 Jan 2022 07:35:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245189AbiARHfV (ORCPT ); Tue, 18 Jan 2022 02:35:21 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:42036 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245276AbiARHfU (ORCPT ); Tue, 18 Jan 2022 02:35:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2B1D9613C5; Tue, 18 Jan 2022 07:35:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABF06C340E1; Tue, 18 Jan 2022 07:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642491318; bh=8pHzTYuyAsn63ZzuNcB6jStefbvJPsDwbXo7zfeaKc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FsTlmWV0eh5Crc3H/wOj7YTs/unaKz68pYVYdavUQPyFhb3QtBqRhZ9vx7QShZaWF 3nwiPCwDyNS254/9fHk7unsJbVeslVq2LlasyQmAbAQK6A/QaoE/PYjyPIX+U+NiA0 jKqti6bcrIGABxJeaS8H4onk1A3uk8rR9xmgk/reHTJlI13p2T5sPKVR5Atll4vtdh fSgVXchSU+5Dz2dEy9ae9wga+ukin/Yp67elB+77NSUvI5glKExo/PCPajnFATtLlB lVYsdHacqEvbhhe/0xCSSvstAncJXgyVsLxNey2H8jWUKEXFAGsd8O1Siz0Pu+dntF DQayCf/R4KyAg== From: Leon Romanovsky To: Jason Gunthorpe Cc: Maor Gottlieb , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH rdma-next 3/3] RDMA/core: Set MR type in ib_reg_user_mr Date: Tue, 18 Jan 2022 09:35:02 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Maor Gottlieb Add missing assignment of MR type to IB_MR_TYPE_USER. Fixes: 33006bd4f37f ("IB/core: Introduce ib_reg_user_mr") Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky --- drivers/infiniband/core/verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index c18634bec212..e821dc94a43e 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -2153,6 +2153,7 @@ struct ib_mr *ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, return mr; mr->device = pd->device; + mr->type = IB_MR_TYPE_USER; mr->pd = pd; mr->dm = NULL; atomic_inc(&pd->usecnt);