Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp461345pxj; Tue, 18 May 2021 07:16:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaLrMT5ucHoRz6anP7OAHcIYAxZPrJSU/KIUfChOQ2zInxWg76iTebFMQFFZAdXzb6LP0f X-Received: by 2002:a05:6402:1686:: with SMTP id a6mr3330227edv.123.1621347371494; Tue, 18 May 2021 07:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621347371; cv=none; d=google.com; s=arc-20160816; b=ZcWNVgu8Yu+vW/ZPTjXP21e4yoK0koRmlagdhlQzKqwtrJbIq3mOqhUifDaPTT7Wjs 2lYO4b/+af6nZAQqIJwrxnnhzyek5jBvfFoub+uqwZfZGxrqRe3Z0OeFmI9KZtlSZrkr CMBiyhvffKsgMj8upELQfLUuuhfbS9273RXjrErx/SiPaan4pgL284bRxD4xVSx9h923 S1DNu5JoDg/d4jdNF7e+qOOHEPAVTzTa1kkKGPIJPtVFj3fY8mzjtnYyataD/7dDK6C0 lKpzhAhT6N5FMhLTzNTfpqUjkzkj1LITCOZZ4NBoWJ8PhCRjzs+M2fucyoPESLMS4m3T tYWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sUMYBQp1tf6iQafUyeKXjFGXpNXXC9sfBU9aWide9VY=; b=hExEbmLm7SRll9p8x6cdd+rrmy5bArEThAHUn6higQIJGVcNer2FFXEwD1oLT7z4bW cSv1BB/eu98uv0+pN+4fFjMzOYQCbDSWcQx5/rtJGFKq98Wgs4XoXD3H1fVZyFI6u5rt M3C5u3eiQS0wECtDLwdeCV1fPhyPCPhcei0RRxz8wY1f27ZJoIp9bv4x/bfYeltQ4glD sx3ZsIdIZmO9qVDad/8k/cP4lEt/USmOXRY+qWFy7eUJqGaeEVHQyNXC+ztcPYY1yB/t tuOzmv5NMC2Ovfh+Pq/KFzKljxw9ASBem8TJRAIGsdBoz0Rpb8mC24DiUQtVv61Wtpwp CX4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fsb7OUxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si17867097eje.44.2021.05.18.07.15.47; Tue, 18 May 2021 07:16:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fsb7OUxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344232AbhEQPni (ORCPT + 99 others); Mon, 17 May 2021 11:43:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244324AbhEQP2W (ORCPT ); Mon, 17 May 2021 11:28:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48AC261932; Mon, 17 May 2021 14:37:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262225; bh=djhqGlXus+BDmy2W6gq9vONwOLWmalASbyxsh6hZebk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fsb7OUxcS5r8n+BPcYTb1E2wD9K3BGMmubrEUA0hv6StDoChIo7jYhQWo3EE45+wq ZJxNm7RVyiGRqFhN8jalGLGr1YFqyYVvG/9rDm0kzp281gB7hnti21tJyCnQ6AnU0K CvavqZjVFPRdT2oR3CslMG+S6yeuTFpg0cHSyk3A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuck Lever , Trond Myklebust , Sasha Levin Subject: [PATCH 5.10 137/289] xprtrdma: rpcrdma_mr_pop() already does list_del_init() Date: Mon, 17 May 2021 16:01:02 +0200 Message-Id: <20210517140309.772266812@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chuck Lever [ Upstream commit 1363e6388c363d0433f9aa4e2f33efe047572687 ] The rpcrdma_mr_pop() earlier in the function has already cleared out mr_list, so it must not be done again in the error path. Fixes: 847568942f93 ("xprtrdma: Remove fr_state") Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- net/sunrpc/xprtrdma/frwr_ops.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index 8f96bb0a6061..bf3627dce552 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c @@ -555,7 +555,6 @@ void frwr_unmap_sync(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req) mr = container_of(frwr, struct rpcrdma_mr, frwr); bad_wr = bad_wr->next; - list_del_init(&mr->mr_list); frwr_mr_recycle(mr); } } -- 2.30.2