From nobody Sun Sep 28 16:36:38 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1756328588; cv=none; d=zohomail.com; s=zohoarc; b=P8vLOaxdo5Z7SPlf0ScXHGV2+dwUtsS5lxWjhNn6maMwV77JV8y5JolJLFObVHIdDHbYtqt9lkWBNPsL6AyijqjtOgiUCEO9iAyZIlgR+niJ+63Vth2StFCqHAZq4z4/rKAtd7QKujXQ61qZ66z23vDQmlpFRpWhsD3qVwwijzo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756328588; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QJAr3TebO8J8PikwvNWprOvIsh2tZfg1cE20LO3lM7Y=; b=j71cFeUeMmBBhF9am0zk+K7agqkZtZHVIyNiYikoI5URNZgSt0zAshYdij6eeHebcnPZrDxEebU3UKT+7exNkhTeu65HcDHE1xuSNrN+FZXP7BUfwQ3eb5cuXiv5I5pgUQ5Y6m8v2ruH/fsBFUCd30G7YfyoLwzFaB6x4YLupLU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1756328588881514.2331075198512; Wed, 27 Aug 2025 14:03:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1urNI1-0001TF-0o; Wed, 27 Aug 2025 17:02:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urNHc-0000wR-AM for qemu-devel@nongnu.org; Wed, 27 Aug 2025 17:02:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urNHV-00073c-LF for qemu-devel@nongnu.org; Wed, 27 Aug 2025 17:02:14 -0400 Received: from mail-yx1-f72.google.com (74.125.224.72 [74.125.224.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-395-2UFGrEGRPECKYoBnm9IgFw-1; Wed, 27 Aug 2025 16:59:56 -0400 Received: by mail-yx1-f72.google.com with SMTP id 956f58d0204a3-5f3562a16fbso437951d50.0 for ; Wed, 27 Aug 2025 13:59:56 -0700 (PDT) Received: from x1.com (bras-base-aurron9134w-grc-11-174-89-135-121.dsl.bell.ca. [174.89.135.121]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e96e5530a32sm1389846276.17.2025.08.27.13.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Aug 2025 13:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1756328527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QJAr3TebO8J8PikwvNWprOvIsh2tZfg1cE20LO3lM7Y=; b=h2KUKO079Wa1O8FbS7mkZCfqp+GeIeEALZR9YyZ96JrMjdEeZ0VsOAt42yxtlwfonTjH/u MdjZ5eXFnaSWbKDxf/XzsVpbmx8h2s+L+u9y/I6cq+2xgPohWHjY3JjknDNY78k6Cfb2nW XCQOOSmDhwLywpuanXoICaKhssDIJkU= X-MC-Unique: 2UFGrEGRPECKYoBnm9IgFw-1 X-Mimecast-MFC-AGG-ID: 2UFGrEGRPECKYoBnm9IgFw_1756328396 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756328396; x=1756933196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QJAr3TebO8J8PikwvNWprOvIsh2tZfg1cE20LO3lM7Y=; b=s98lyjl8oNZ3gMCUb5zi16iz3k7r7T7e5ijc0TfvF80EO5ypehLB1FeLKxLacZu0Bf CBwlp5TTybgZ8Zq22QQMBl3IO+nvO+iXs8MKNWTnuLp7xJ5/KARt7coR27btoyp2TzK4 3XspVAL3kIdGg/mYnX3PaGwa8C1iT+M+IyjznQX5kS9Qsf52iPtzrw1G6FER+4IJ/cQE hoeOTEvhjqOt1sTW8h5MEf+wpDnMd+GUAYpalFLSrTVvjmakmxczQ6yZNIZAoxyDx2lh oeCqYc4AJi3EpR9AdT37ngY9mAkEicWmUCjzICSTUYoGmdgIfSd9p1BGdoWRueELOZXZ ycNA== X-Gm-Message-State: AOJu0Yz2/cy7Pxj75KjOgi1JRnlhE6yLms2VwTG2EvW7xPL18UOyCA2R D9nd4ltqxqzLBJIcrA9+0Ra8mVdwNXwx8FrmroXocNHu0kq/ARQfIjiks4KPS6jdZak3qWgObWq U4RmfsEjydQRfPDaXwfxNv0YPpW4+4UjJTTsAsPtdJub/j/0VkG4R2ry+xj5Y5xpP2tdrH7M9Up BKGmkOk1Dq6/uJmFNeenOdudOkm+aUPsYxOEVjBw== X-Gm-Gg: ASbGnctESYGDC+gCqAd0yiUWJDjhCDx8LVCPwaLm2ijZG5HrBmdSjnKUrgChjHKPa1R MeR4buM3eoBDD5+Lk0xhTCSZzArPkwJw5C+Xhz2gm3QQSwp/Wf1c9vbPbXlW9M8b59b5QPS50lA UqdVPrC+CVche3OpIH7RAN0pAORF5ERqE7NT6t855z26lH4K87dX0yEjka5HwzfFPBPpjFrTqQa 2vD2nCFL9kp5ruDOb/B1+22tBlLPoGgY8VP0b3ibm0jRSoyAH7Ix0CMpwWcAPipnmZvkuG5SQ3A o75iqOTWUerU1TsRk3C3mWiy2+r27OIU4DgUbcd/uK6BJAHXa50WZKdlmH2IMaW9OlbFcaJrWwX 9F8UkqD8hGoXDvlLiwAQ= X-Received: by 2002:a05:6902:1145:b0:e95:3636:fec7 with SMTP id 3f1490d57ef6-e953637041bmr14362446276.3.1756328395872; Wed, 27 Aug 2025 13:59:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWuQxOKR+8wJOK0/TNbn7hTa6ZZbpCFF+H/RmQjalGCt0MH0LE5+RvkPGQaBYReAhzsoSjYA== X-Received: by 2002:a05:6902:1145:b0:e95:3636:fec7 with SMTP id 3f1490d57ef6-e953637041bmr14362396276.3.1756328395326; Wed, 27 Aug 2025 13:59:55 -0700 (PDT) From: Peter Xu To: qemu-devel@nongnu.org Cc: "Dr . David Alan Gilbert" , peterx@redhat.com, Kevin Wolf , Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Fabiano Rosas , Hailiang Zhang , Yury Kotov , Vladimir Sementsov-Ogievskiy , Prasad Pandit , Zhang Chen , Li Zhijian , Juraj Marcin , Lidong Chen Subject: [PATCH RFC 2/9] migration/rdma: Fix wrong context in qio_channel_rdma_shutdown() Date: Wed, 27 Aug 2025 16:59:41 -0400 Message-ID: <20250827205949.364606-3-peterx@redhat.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250827205949.364606-1-peterx@redhat.com> References: <20250827205949.364606-1-peterx@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=peterx@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1756328590899116600 Content-Type: text/plain; charset="utf-8" The rdmaout should be a cache of rioc->rdmaout, not rioc->rdmain. Cc: Zhijian Li (Fujitsu) Cc: Lidong Chen Fixes: 54db882f07 ("migration: implement the shutdown for RDMA QIOChannel") Signed-off-by: Peter Xu Reviewed-by: Fabiano Rosas Reviewed-by: Li Zhijian --- migration/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/rdma.c b/migration/rdma.c index 2d839fce6c..e6837184c8 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -2986,7 +2986,7 @@ qio_channel_rdma_shutdown(QIOChannel *ioc, RCU_READ_LOCK_GUARD(); =20 rdmain =3D qatomic_rcu_read(&rioc->rdmain); - rdmaout =3D qatomic_rcu_read(&rioc->rdmain); + rdmaout =3D qatomic_rcu_read(&rioc->rdmaout); =20 switch (how) { case QIO_CHANNEL_SHUTDOWN_READ: --=20 2.50.1