Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp184288lqd; Tue, 23 Apr 2024 21:09:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7wXNH3I0Su9e/WfJ2KMQa6IjTHbx8CEN00PWoRcF+s7qA65QD0Mpc7BH3dMVGufqoxNygwHjkBLSq4lbBXPRRunFL0lOEU87AV3v63A== X-Google-Smtp-Source: AGHT+IGnf155Lazd0VKZcFOG2a1urdLF8fuo1vcCIMX6qeI4hO2Ya0td5W2V2JhzzlfB93ypQaCI X-Received: by 2002:a5d:45c6:0:b0:346:4328:f7d7 with SMTP id b6-20020a5d45c6000000b003464328f7d7mr652641wrs.38.1713931750246; Tue, 23 Apr 2024 21:09:10 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mb6-20020a170906eb0600b00a55bb15701esi2947926ejb.979.2024.04.23.21.09.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 21:09:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=HBQkoB0D; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-156260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CA5DD1F2540B for ; Wed, 24 Apr 2024 04:09:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 420FB13DB88; Wed, 24 Apr 2024 04:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="HBQkoB0D" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2085.outbound.protection.outlook.com [40.107.223.85]) (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 C629E1E898; Wed, 24 Apr 2024 04:08:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.85 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713931738; cv=fail; b=pAgHlzXRkC/FXT7aL1u+HJFjJtmb+MuSAqWMfl8U5V7/E3cfC4Kka70pl9K+QhvKXfIDZSa8qPK+drWIrBsNgpnXAYp8PIAvtepR2IAvKzoY039i8do8B+1Nfsdo1BMTvPt/eBXbjj3UWZuSeV0J8FTbNhWvTggvhlUt1BgwiSo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713931738; c=relaxed/simple; bh=0bHaIes5Jg4j6NV5K5B6Vp7rfSNOmbaIIC9Modvpa74=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=USMz0iL9Or6iKDusagZtLY1Q/n9fcGhMzrnVA2gOwC4ACX7EFXl1YGyi5UJMgf8plNBkR5r2V8P5QVH5EZz3jhUsK3p88vYQQ7oSA+WsNztbye78fAuxK96LTRlBoottvUsncUP3WRFqrO8H792FaorTwHapo0yU4FllXwyb69Y= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=HBQkoB0D; arc=fail smtp.client-ip=40.107.223.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuxL5nBnReg8KrshyXRoGbkYgHAUwCuf4i3jgiaxf6mi2UXqqypigYmVLk7RPVmjyRou2X60gPTlcKKAmse1jNJibB8MaENPVZxsSwBgG7tvcnvNTm3dye+nMxsW6YuDnGsITEF0eZgWc0OSGYOAV0O8PVZV214YP//hpYtX4WWDj7U8X8Zn4gBgGUhFC6uePXNLxzrBX32OnBVsyeJq20pbBojbL/IkOcxcWk0vcCLa9361oDB8WrEVvc7MAMVmCUOb/DrrW5sQW61OGNHmNuKuyPai1z4D7e/7T8vdJ0Br31EIDp5gWGU+lsr+6flHEwu1POmPVEJRttjpqoS5bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0bHaIes5Jg4j6NV5K5B6Vp7rfSNOmbaIIC9Modvpa74=; b=d+axvqPEWCD/ZhH0uXkjKleKrwYVRi33HF3DMWE9UU3mWmK/OJswgeNpxLSZEwNrnd0se/Xw0pdTcS7p5wt0jl7OLo+sEJ05vXYNSNeKkYU3+i1AZ1Ws12Gw2zljtgEqwToWykrnTLAdl1o2Dd691spbK0HM/AgKA20mn1Wxe/MHRfH1Af1RLtykyrV7RRJnI4x++kX7wvv8C8MdombX8E/xm1F5I/GwYfnS5q8A0O4+fUsbwgQdoubmYn52KwG4iUcMs4cUdFu/tSZrgIg3oJ6xtD+ZtYORporlIenF+TGpLPsfrGd0s8O3xfLfwPy39wa+dknsky7bJTeCqAH60Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0bHaIes5Jg4j6NV5K5B6Vp7rfSNOmbaIIC9Modvpa74=; b=HBQkoB0DfYVJX1N30kLdHysa+wDVpwh2YHSuyV0bsMw9vp525yfott1h3IemDfh5ZhzcRirNa6w3EGfcjFHrMSNS18FNYOcdt4Yhe90xnlyoIKQY8+E75RJq/UjWAEoCPmBmQpJqGRrNwce4QNpvyu//GKuszqypeXnaag9CJlb5oV2AW17Mg/7iSKcDaUWR8Ne8XEEnDhsTPveU6tJ+8vOCTzDXdvu3J0tbc0ZeE9XsKQWSY4Y1fykMH7Y6SJnaXJ8U2x0XsOc9nurWoAGoAk353atUuYlHVdoiLYaQ7Y24L179xMbs07mie3k1+LP4eSZHMSURhjuQugHXoDOsIw== Received: from LV3PR12MB9404.namprd12.prod.outlook.com (2603:10b6:408:219::9) by SA0PR12MB7477.namprd12.prod.outlook.com (2603:10b6:806:24b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Wed, 24 Apr 2024 04:08:52 +0000 Received: from LV3PR12MB9404.namprd12.prod.outlook.com ([fe80::a1:5ecd:3681:16f2]) by LV3PR12MB9404.namprd12.prod.outlook.com ([fe80::a1:5ecd:3681:16f2%7]) with mapi id 15.20.7519.021; Wed, 24 Apr 2024 04:08:49 +0000 From: Chaitanya Kulkarni To: Dongsheng Yang , "dan.j.williams@intel.com" , "axboe@kernel.dk" CC: "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-cxl@vger.kernel.org" , Dongsheng Yang Subject: Re: [PATCH 2/7] cbd: introduce cbd_transport Thread-Topic: [PATCH 2/7] cbd: introduce cbd_transport Thread-Index: AQHalMCdU+yhFcnT9USE0GAfwexKu7F20LaA Date: Wed, 24 Apr 2024 04:08:49 +0000 Message-ID: <780f3ccd-5112-4948-81c3-3144c6779503@nvidia.com> References: <20240422071606.52637-1-dongsheng.yang@easystack.cn> <20240422071606.52637-3-dongsheng.yang@easystack.cn> In-Reply-To: <20240422071606.52637-3-dongsheng.yang@easystack.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla Thunderbird authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV3PR12MB9404:EE_|SA0PR12MB7477:EE_ x-ms-office365-filtering-correlation-id: ffb5f144-4be0-4f6c-ee21-08dc64143efb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: =?utf-8?B?aG5rc2g5UTQ2Q0c1b3JXcm15Ymt3SEpIcGpjNUVkVGVuUDhHbTF4M1prOTI1?= =?utf-8?B?c3NUdUVuam5aNk13aFdSSUczdFFONjVDb2h0SUxWS0JxV043NEw0RGRUT21s?= =?utf-8?B?SEJ2OGZCbnh1c3J5aG82TDRxY1NEWGVvanB5dzF1dTVBY1JPcEJkcFd1VzQ1?= =?utf-8?B?Q3FweU1XbmljeVVaK2Z1c1FaVWU4ODg4aWc0dVFpbDZFNGlmMU9GMXZ2ZkRS?= =?utf-8?B?LzFDb2hEdm9uWklnOFp2a1RrVDlnMDBTakNSMXlBcFhacVJudnh3bkV2RVM1?= =?utf-8?B?bWtkcUxFalR2enR0QW9pVm1wY000RU9ES2kyOU9wSDE0d0FDNTFYQk96aWVr?= =?utf-8?B?SVh4b0VPOEZxNzIzK0FxQ2gvVnNiNy9RZmw4TWFhRTBscVpBRyt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V1pwWGpIbmRaVlVnZS95WUIv?= =?utf-8?B?dHFvRzBkMzFIWWpsY1djcWVCNm1yK3BIRWJFc2loL0JqeWlyUkVaVW9XN1lV?= =?utf-8?B?UmVGQnpSZ042SXNET1pKS0pkNGJMcHZEZ2FlejRWUWtLbEFzbWJsSXZaNlBj?= =?utf-8?B?cS9PZlFrSWU5RDl3WExXaDFIN3R5RTkwcjA0WFNPZXRuM2JTZTlIU092bStp?= =?utf-8?B?bVgrbDluRTVhUnNBN0VRbDJtY2E1eDJuZ0VTNlV5UnQxdjROT05LQVYrd2N1?= =?utf-8?B?eHE5d08vUjFNb0hDQ2VEbUlHeUR1L3VhUE1LWVp6SVRjK1pWVUU2b1ovNllY?= =?utf-8?B?a0QzSHBlaDducUluRlhZVlFkWW40T1dWc1h0akpsQlJFMzRGMGNmSXlBaE1s?= =?utf-8?B?eWRnVk1YVmkyenB4dmFMS0lqUE9oQ2JSRHA2bFRQQjZaN2hXbW5CNXNGcVVX?= =?utf-8?B?OGFGZ05JN21GZi9pei9MSzdGdnJ1bVNySWE0RE5QUUJBRTZjT01oMFlZemdH?= =?utf-8?B?QlZxa1RuQzk0WWxjUEt1Zz09?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV3PR12MB9404.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?VjJ2SkhEOU9qUDQ2aVFTQ1FTcDk4UE9wbHJDT1lxM0N4elIvSWNvcUp1bURT?= =?utf-8?B?L2tWK0l4Ry9uZllmWURNR1phWXg4VU16Yjd0QytCM3RzQjVRYWRpbGRodkxi?= =?utf-8?B?b1FEcEdWL2JESkVzZ0h2OHJ1anIzR2xhakZyWHpHRnBYczVpSFFnTkVZZVVU?= =?utf-8?B?SVhp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R2NzM2OFNNWkdpQURtWTZX?= =?utf-8?B?L3pWWnFpYjFqbVhhN3RVVlJiOURBWGllWkhCM3ZrK2E1ZDdIQzh5K3RIazNJ?= =?utf-8?B?RGNJUUpLT0ZQUmlveHNHdWJZbDdTTWlWbU11MXZCcEdKS0JFL3hhazgzS1Vz?= =?utf-8?B?d0VsR0hGWU1jZmczV09PYUZrQXNkM2Mvc0QwbWJTL2RLQXMzTmYzdkhFZE9I?= =?utf-8?Q?OdviE70hPMRClMOosc8PSnkLwbK7gjo0JmXYy+7nsCFB?= Content-Type: text/plain; charset="utf-8" Content-ID: <37117C1E526D0447AF5ECB36B5C62844@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV3PR12MB9404.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffb5f144-4be0-4f6c-ee21-08dc64143efb X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2024 04:08:49.8267 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MAgmHUUorJf+Cs+cWLUrNZlXTBgBvJSjL8Wp+UPqWSOMLdHVk4EuqNIeaTwYKB756IwWwfXqEi/7HV+Nvce/kw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB7477 PiArc3RhdGljIHNzaXplX3QgY2JkX215aG9zdF9zaG93KHN0cnVjdCBkZXZpY2UgKmRldiwNCj4g KwkJCSAgICAgICBzdHJ1Y3QgZGV2aWNlX2F0dHJpYnV0ZSAqYXR0ciwNCj4gKwkJCSAgICAgICBj aGFy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