Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3081175pxj; Mon, 17 May 2021 17:17:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgyICgWhcslAI7yNVg2dXMZyABDsN6bwieBvUHvS9fo1ZFFXyOgHx+ORL8tbmxta2au5lV X-Received: by 2002:a17:906:1e44:: with SMTP id i4mr2757683ejj.61.1621297035339; Mon, 17 May 2021 17:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621297035; cv=none; d=google.com; s=arc-20160816; b=FrnUbthl2D/6MZuaQa9VFllE3lepzndik3d4s10MKeAbJpbEoKc74hIm85sl4wDkg0 YesykXr8rF+NK9AVRexzRMOy8P0xjUcTcycmUYxdaLSZ03R/t6XysQjHi7D2Ba/GQEbv K3dW/Ksv2jp+VcgUFiDk+yedFzPt5lLXNu98ZHH3WOnvnErarglpZtZC0gqGiIlR/v+z /PImW2W9XGCZdt9xgLQVbAh8tVpN6ccQqhOKtrCA8fYjMBBldeWYx6ua80ni67f1WNPM Qu68HXKzuQOB3G14iVDdXObuOSGFG0u348U7yog6eLnv/6ekjm3TfBIuOJmjV2O1G25E F6jw== 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=Q7RIp6C6xlMK2n3di1FO+sBGvKIImImDXdhaGAizCXE=; b=R2apUlc07DN86fETu7ty/Y7K0a/jX4tw6Ea8kJwP8+XYvHLpXoKaawCq+6kgdFUmDA PMT8W/2wtJ7rG1EQ7Mv/WgGwn7IDA5e39Q6VBErFtcuXPOS1LFCV9IhH4GZ0S8Da4ngt HMBMUXRT2kTHvyAVkaeBOe0f9iZ8Vl2c83d3cctodqcykaAcSPQXhZILI/+76Oqw1V0g K0Db6JP/wTU6AB/xjn9IEkfcuqLK8W6zdiIf2e43oWbtwzdQhxGdbi/n0l5VBBmE4Noi v6fogAYCMWKa3tzYUhJkhOdFGudQDVuNZb42MmPmhN2emF5YfU/ACb/tjn0nF763ZZIk kgdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F5zROpfH; 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 u19si16324035edo.74.2021.05.17.17.16.52; Mon, 17 May 2021 17:17:15 -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=F5zROpfH; 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 S239149AbhEQO1n (ORCPT + 99 others); Mon, 17 May 2021 10:27:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:49734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237996AbhEQOXM (ORCPT ); Mon, 17 May 2021 10:23:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C28EA61454; Mon, 17 May 2021 14:12:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260739; bh=yeoGI1DqCsGV3faMoMtDsCse4dYM4foIpedGVcMUv0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F5zROpfHENCXYI3nn7YQLmXkhfvEntkNAumYA8a9Vbs9HELIsWR68EqCwk0VEI8wL fqkXh0ZlQxsu2KjEuLxJCJe1R0tFFG/m3zH30EgrBz/153QvXfX2Ifiav3hJxnuRWy aWZHgdF/O/WkxWkCOmRiXqQtNMV7mNLMPBGGIJec= 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.12 183/363] xprtrdma: rpcrdma_mr_pop() already does list_del_init() Date: Mon, 17 May 2021 16:00:49 +0200 Message-Id: <20210517140308.776874141@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 132df9b59ab4..aca2228095db 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c @@ -576,7 +576,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