From patchwork Mon Apr 10 06:43:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)" X-Patchwork-Id: 13206117 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 8263CC77B61 for ; Mon, 10 Apr 2023 06:43:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjDJGnc (ORCPT ); Mon, 10 Apr 2023 02:43:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjDJGnb (ORCPT ); Mon, 10 Apr 2023 02:43:31 -0400 Received: from mail1.bemta32.messagelabs.com (mail1.bemta32.messagelabs.com [195.245.230.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB842D47; Sun, 9 Apr 2023 23:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1681109008; i=@fujitsu.com; bh=lz2fI0gpznOYEVET54zSAl1n0IRovlfLa0r/idjEk1w=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=d1pHysgimmoV7X2JKFbYJgttT37v7dBF8WSiO73AKPlDXgKiWCdRobdlDUtQEfRxf VSHlNayFMFudbyl3eaWlzmH+DAOeT0RZeFoFv2UfDmJoNRgfTHeRCYID6M4HDcBEJM sdREHTD/Mt4/S1MQUlmAd9ZvVmNKG3U7S67p7XwRkISycRutW7ebseyMC7AClLda0z zy4ysVPlGOSVgRA9KMkzrB15MBbfDjHAnLE686/PKJV12SMfKxVh5+CIxSS5rePtUx xs4B8IR3q9db5D9MwCyLV4ZN1ydG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JcYtT7irDtYfM1q273RF15gp7Xl3B0fbrH5RYijMSDbWYi4oTAbC+cRdxAwAA X-Env-Sender: lizhijian@fujitsu.com X-Msg-Ref: server-12.tower-587.messagelabs.com!1681109006!373208!1 X-Originating-IP: [62.60.8.98] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.104.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1604 invoked from network); 10 Apr 2023 06:43:27 -0000 Received: from unknown (HELO n03ukasimr03.n03.fujitsu.local) (62.60.8.98) by server-12.tower-587.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 10 Apr 2023 06:43:27 -0000 Received: from n03ukasimr03.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTP id A320C1CD; Mon, 10 Apr 2023 07:43:26 +0100 (BST) Received: from R01UKEXCASM121.r01.fujitsu.local (R01UKEXCASM121 [10.183.43.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTPS id 97C791C8; Mon, 10 Apr 2023 07:43:26 +0100 (BST) Received: from 31d618797ed9.localdomain (10.167.226.45) by R01UKEXCASM121.r01.fujitsu.local (10.183.43.173) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 10 Apr 2023 07:43:23 +0100 From: Li Zhijian To: , , , , CC: , , Li Zhijian Subject: [PATCH for-next 0/3] rtrs bugfix and cleanups Date: Mon, 10 Apr 2023 06:43:01 +0000 Message-ID: <1681108984-2-1-git-send-email-lizhijian@fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.226.45] X-ClientProxiedBy: G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) To R01UKEXCASM121.r01.fujitsu.local (10.183.43.173) X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org It's trying to fix 2 issues caused by the following script which connect/disconnect rnbd frequently. # cat rnbd-self.sh #!/bin/bash /root/rpma/tools/config_softroce.sh eth0 modprobe rnbd_server modprobe rnbd_client while true; do echo "sessname=xyz path=ip: device_path=/dev/nvme0n1" > /sys/devices/virtual/rnbd-client/ctl/map_device for i in /sys/block/rnbd*/rnbd/unmap_device do echo "normal" > $i done done Li Zhijian (3): RDMA/rtrs: remove duplicate cq_num assignment RDMA/rtrs: Fix rxe_dealloc_pd warning RDMA/rtrs: Fix use-after-free in rtrs_clt_rdma_cm_handler drivers/infiniband/ulp/rtrs/rtrs-clt.c | 19 ++++++++++++++----- drivers/infiniband/ulp/rtrs/rtrs-clt.h | 1 + 2 files changed, 15 insertions(+), 5 deletions(-)