Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1439210lqa; Mon, 29 Apr 2024 08:28:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbN+qoSWqU6i4hT/YwDAWOE8WMxerT/JxGcd4OKweV7fmvGMBlcGCxVoUiGU4K/yWbXrwOZKic8v11d/9hZocXADCQ9/A3H5j5tCVQNQ== X-Google-Smtp-Source: AGHT+IF8wx/TG9snHFN/+Z2alSjAzY+jAi0eamz7m61Xgf8PVWFU7SlGKmxNCJVXR9h7KZnd4P3e X-Received: by 2002:a05:6e02:1aa5:b0:36c:4c02:f172 with SMTP id l5-20020a056e021aa500b0036c4c02f172mr5675216ilv.17.1714404530932; Mon, 29 Apr 2024 08:28:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714404530; cv=pass; d=google.com; s=arc-20160816; b=mkRDWkIXY1ef2y8fcJEWWopaMm9VliBLTnEb/IHkCYaTjYqV8YXW8i0uLIiZRDbHBX l93xsx2ftdCLZSDea9o0pscZFR8Wsuh7PkU+8qedrq8/YFJMJubnIRVksa4UgRiIus8O 1et5y8sKbiTJoq1hqQDZpWw5PeWFnadsrxKX+aWrfwop7+UVU3oCPWkHoOqQvcDcVSps Dztadr5IVZidmzXnLtn98gRq9dMzQQkK+e26BZkAm+dKbs/B3Gq2pP3kGCo7g9AmDTp7 n5D0tXWWQlczBrvc86y5/ta8jYqUqw3egQWzoIEZf9AuF6T/vDY6rWMOM1AURfmX/0fW 4x+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dsY6aqSswNS8OtMkEM/1hZTRA3lnKhosQN7i7Co9be0=; fh=qaSOC2OodSraNCLbI/HJkCFcBCPaUfmptuzLoSAzYKE=; b=f/kYTR0gYXXkcyGVRLvMMp/YE+S6pMle5iOnlnkr6vq7+g5LxOTxcLvbagvWIWRH77 DBNoDIAVUramEEFZov/tUlO2owldHqJuyPqGy2CoVINUSZjnjH+q80lqo+3Ao9/IykBZ E89e/oWIikTUEZRBf2rplQeh4j7X1pqHIZb3YRnrmNBz7j+aqTZ+1tRmstJ8TQHMu0ky ly35pQDFaXLTgaEp0U2TKZxCS8e3pXk1F3bqTBzt6ozcyl3kpNqplDNlugC6BtSEYpKS abqKpfkBpF5R+GXQi0EReUx9pu7897NyLFcMCmRgGpN7PxTJ62mtTMe2UImAjmPBRJm1 c/bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FDi/an3A"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w25-20020a639359000000b006021d108d48si1666336pgm.601.2024.04.29.08.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FDi/an3A"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 842ED28A5E3 for ; Mon, 29 Apr 2024 15:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD13282D62; Mon, 29 Apr 2024 15:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FDi/an3A" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1EA582899; Mon, 29 Apr 2024 15:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714404345; cv=none; b=PvmUQXYQrKHiNS/Cv2buld+zFqLboXCDd3DCs2DahaSgFqjuaIs05369lUOADLQXhCXD2wnIesuoxqrwsdCD7sexIQTPy6cHlkSiouEK2tmwyfiITGf8mYlaT8iuZLQKxlsGHCm1bgh247+DzcORLcTEVVGJZzkxqrn6YWPGSMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714404345; c=relaxed/simple; bh=3chjRlWFA+CIIEOGgMd3ndkEz7Spm+a36WUbDUMnrAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WKJLqfqTIQ/J08u13q8DXOBZQ34FrXDyDh8UeJ1lwm1qCsMRv1zXOZi5zRLJ0a3tZctLV9eUVEulYQFAw49gWst0MfiBNBqSNZbUw6H9/LSzh0bu80j71/fm58z+TFDYBelDc7C4BOrIxaa5K6AfZwO+iit19Z5xRR/XYq00G9s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FDi/an3A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3380CC113CD; Mon, 29 Apr 2024 15:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714404345; bh=3chjRlWFA+CIIEOGgMd3ndkEz7Spm+a36WUbDUMnrAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FDi/an3ADW45fwNGBk1mLLU5oEgUXzD6Nwar9hxj75+6V4BVK88/w8StPhm6gXgqW br1h3ti99140VWpKxFSptM4YJO1qXu+w23Am39qXBTjLZ5fXBZTFMlArHWzylvid6I eED2FinnNwXCcWVG6g8iP6k5gyLo4vmLj7XkLxhrWCjnWAxYBwJdATwQACE7ltu2Mr Ttl3SGuyMuX2sejRW5Q3SO7PkF7TJCEd/2GwJ8k3zbr6dJd1ozC6whUQ9PQ5K6GDGf 5DjpMSFqODTdQOegD0sCLSRk7/JpxKa6YzNwPyiz0yXu3oVVncpQPsYyg0ydz2l1xz w42AWhL6xLTbg== From: cel@kernel.org To: , Cc: Chuck Lever Subject: [RFC PATCH 2/4] xprtrdma: Clean up synopsis of frwr_mr_unmap() Date: Mon, 29 Apr 2024 11:25:40 -0400 Message-ID: <20240429152537.212958-8-cel@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429152537.212958-6-cel@kernel.org> References: <20240429152537.212958-6-cel@kernel.org> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1342; i=chuck.lever@oracle.com; h=from:subject; bh=mrzVot53dktixzRfAgrCLvQUOjngZn1HCXDlSGimSQ4=; b=owEBbQKS/ZANAwAIATNqszNvZn+XAcsmYgBmL7vxRhWS9cWJKwy3Nm4QTXfiKvaSXSrkDsPpo 83hTBWlFryJAjMEAAEIAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCZi+78QAKCRAzarMzb2Z/ lwarEACxMF8Ans33wi8UMWdclPVAgQqib8TPr8ILTA+W9LUHVjUY5Pq4LhdDUMKzXsFu3t29CrK Kno+wH1MkTQhFoKt9TgEfRp8Rg5lBqwu3BM+clwfaB7N3dk7EJMDrTI5uZm9Kvcf0FjtOol1Tmo bNT0yXL8oMHFsUd18ZaNRV25IPOilz+oMfAKRUhWDaN9gwbWGdUL+/sp0LqZei1by/XRAtj99dt HJuaCk12gQqGLR/Fy5yJAV/n2zjIKoF2cNeFOdjjiBcQTkIiaZ8B7uv2yn5Qrm1yOk0p472tuJL a36PcHljwEBCwi/Dx39wjzARuP699qoO3IfLt0jKeHyKz1U4PxD+j3tzXbDsLOKnzN9w0NoIitd fPfSq8qFEcScvv/RLlIEMcmTCKD7Ff9Y0mE2BeqU0QhNaYzdMIXhS6s8xWtBAlR7EdVDykRN1nI OW0ICzTMb2kGsTM0gAIaecxeq9M7bfmr8gJxbce7tdm8/mGZHcYskKf/3iw034VhSGzki2+Rf6V a/NWsOBgfNDcq2+3wDqfgZz2+Wxf7t5rCGirpLU8uc+0YK3FtEt0Y9820MWLEbdbzI50CVg6eWn pUsF907I3WvYD1RJRTNcPp4w2R14nN/mnUnxI769cloQI3ZVB9znj+5qb7aQeky3KQCbsBlk4dO Sja8gido/RYMFMQ== X-Developer-Key: i=chuck.lever@oracle.com; a=openpgp; fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97 Content-Transfer-Encoding: 8bit From: Chuck Lever Commit 7a03aeb66c41 ("xprtrdma: Micro-optimize MR DMA-unmapping") removed the last use of the @r_xprt parameter in this function, but neglected to remove the parameter itself. Signed-off-by: Chuck Lever --- net/sunrpc/xprtrdma/frwr_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index ffbf99894970..6e508708d06d 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c @@ -54,7 +54,7 @@ static void frwr_cid_init(struct rpcrdma_ep *ep, cid->ci_completion_id = mr->mr_ibmr->res.id; } -static void frwr_mr_unmap(struct rpcrdma_xprt *r_xprt, struct rpcrdma_mr *mr) +static void frwr_mr_unmap(struct rpcrdma_mr *mr) { if (mr->mr_device) { trace_xprtrdma_mr_unmap(mr); @@ -73,7 +73,7 @@ void frwr_mr_release(struct rpcrdma_mr *mr) { int rc; - frwr_mr_unmap(mr->mr_xprt, mr); + frwr_mr_unmap(mr); rc = ib_dereg_mr(mr->mr_ibmr); if (rc) @@ -84,7 +84,7 @@ void frwr_mr_release(struct rpcrdma_mr *mr) static void frwr_mr_put(struct rpcrdma_mr *mr) { - frwr_mr_unmap(mr->mr_xprt, mr); + frwr_mr_unmap(mr); /* The MR is returned to the req's MR free list instead * of to the xprt's MR free list. No spinlock is needed. -- 2.44.0