Received: by 10.223.148.5 with SMTP id 5csp7252755wrq; Thu, 18 Jan 2018 03:03:56 -0800 (PST) X-Google-Smtp-Source: ACJfBovPmKrCZaiFRDC1KNVV3hghdfAY1PDxD10Nmag1qxoUHbUllNDFsN+yT1ilCkAQTIw0DpzK X-Received: by 10.98.7.207 with SMTP id 76mr17198955pfh.130.1516273436779; Thu, 18 Jan 2018 03:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516273436; cv=none; d=google.com; s=arc-20160816; b=NBTAo5GgRc5KUSLd0s63QfVsE8DH1XmVfrBKooN0r8euyT4+wycH0+AIDDZLK3oz0P 2gqWMNZK31rNy7tLyo3SFPhQD6U3B0HAH9sXfcmDIQozwNI3I3V02vckDxmzofzyW7ge dZVBUjAEigExLSbMq90rxw+Lwd5+6U7AF5suoGVceqHpFby4bKSV54LrLOOutoXhwuwV j/gqmULEe0ZXUSlhwdNGUVFT6L0erKJCVlK6Pc7VJcpOUOMgKaDTcuOeZ9bAzvgKVbvr +kbwKiIV4JNr3aI54bMZpJ7IpUWQyaRgGkskulS15rbc2Mjas3tnmaxK0SqKqHG0BjA/ BnjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=S1EyJnwHnugs+fYon7Ge7idq7avnZn8jLC8qfpohqgo=; b=J3GnJWwRP0he/Fxd6OB9cSQCXurGTnJOLw7r7GlrWqg3rjCviRNOg4fV4zonjhhY/r K9so2Qw62KyqrD7juSlxxE4csxKsjfdkpfXERa6Q+Np1uhXvrczzAwPpZqwxZmXIEGJ/ f+5yWm7780E/61KNX84tUSy2jFkvSUEUSoQxwUalFlO8rQwmLMDCcTD3+rGm/H24vFdf 7+0mJnR8ysAeLsjg9y4uNTYLzK1C8Who+YfoVZAtWFO/ZpJOBVgDmr6huqdvzx9Tt5qq ZY/dIb9VFPY9YmCrmPlO+WMbD7lG7WbkWSNDRNhHI1ma2Qfco6RCScfLPKPPQNsWtco7 MvzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=d8X+yjWs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si6226022pls.297.2018.01.18.03.03.42; Thu, 18 Jan 2018 03:03:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=d8X+yjWs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755761AbeARKRc (ORCPT + 99 others); Thu, 18 Jan 2018 05:17:32 -0500 Received: from mail-ve1eur01on0048.outbound.protection.outlook.com ([104.47.1.48]:35648 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755615AbeARKRZ (ORCPT ); Thu, 18 Jan 2018 05:17:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S1EyJnwHnugs+fYon7Ge7idq7avnZn8jLC8qfpohqgo=; b=d8X+yjWsF88CVNrQkkY+bM4IgOvTtAhO/ECDE9j2Kf9KKc82YJ4f9UV/V7LyKyb7fuuqr9HjHjZgU+1lfHiNuV369Dz1+CTTU6vM+R/nFLtQT2U0lmG2dljPLsVkcs4J+oShAMBH7lOVJPxX92fhLgnaaaZN0Z1dJ5n+kvpJhhU= Received: from DB6PR05CA0002.eurprd05.prod.outlook.com (2603:10a6:6:14::15) by DBXPR05MB126.eurprd05.prod.outlook.com (2a01:111:e400:981c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 10:17:21 +0000 Received: from DB5EUR03FT053.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::208) by DB6PR05CA0002.outlook.office365.com (2603:10a6:6:14::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Thu, 18 Jan 2018 10:17:21 +0000 Received-SPF: Pass (protection.outlook.com: domain of mellanox.com designates 193.47.165.134 as permitted sender) receiver=protection.outlook.com; client-ip=193.47.165.134; helo=mtlcas13.mtl.com; Received: from mtlcas13.mtl.com (193.47.165.134) by DB5EUR03FT053.mail.protection.outlook.com (10.152.21.119) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19 via Frontend Transport; Thu, 18 Jan 2018 10:17:21 +0000 Received: from MTLCAS13.mtl.com (10.0.8.78) by mtlcas13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 18 Jan 2018 12:17:20 +0200 Received: from MTLCAS01.mtl.com (10.0.8.71) by MTLCAS13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Thu, 18 Jan 2018 12:17:20 +0200 Received: from [10.223.3.143] (10.223.3.143) by MTLCAS01.mtl.com (10.0.8.71) with Microsoft SMTP Server (TLS) id 14.3.301.0; Thu, 18 Jan 2018 12:17:19 +0200 Subject: Re: [PATCH V5 1/2] nvme-pci: introduce RECONNECTING state to mark initializing procedure To: Jianchao Wang , , , , , CC: , References: <1516270202-8051-1-git-send-email-jianchao.w.wang@oracle.com> <1516270202-8051-2-git-send-email-jianchao.w.wang@oracle.com> From: Max Gurtovoy Message-ID: <4be66899-0246-9d03-eb03-76488e7e629e@mellanox.com> Date: Thu, 18 Jan 2018 12:17:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516270202-8051-2-git-send-email-jianchao.w.wang@oracle.com> Content-Type: text/plain; charset="windows-1255"; format=flowed Content-Language: he Content-Transfer-Encoding: 7bit X-Originating-IP: [10.223.3.143] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.47.165.134;IPV:NLI;CTRY:IL;EFV:NLI;SFV:NSPM;SFS:(10009020)(39380400002)(396003)(346002)(39860400002)(376002)(2980300002)(438002)(189003)(199004)(6116002)(7736002)(36756003)(16526018)(106466001)(2950100002)(50466002)(83506002)(6246003)(4326008)(65826007)(59450400001)(81156014)(2906002)(86362001)(2201001)(5660300001)(81166006)(64126003)(3846002)(230700001)(53546011)(8676002)(316002)(356003)(58126008)(54906003)(47776003)(229853002)(31686004)(76176011)(110136005)(16576012)(31696002)(6346003)(305945005)(65956001)(65806001)(26005)(478600001)(67846002)(8936002)(106002)(77096007)(3940600001);DIR:OUT;SFP:1101;SCL:1;SRVR:DBXPR05MB126;H:mtlcas13.mtl.com;FPR:;SPF:Pass;PTR:mail13.mellanox.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB5EUR03FT053;1:a5WRBkLuy26IYXmLIg1jCGTwVTMkrgASjrEZsPbWPpUWyH9Oxt+ZlNlYRb6WfOtEAPv1ZQDXy6e9WFC9qLAShCLgEhRTHWYtCGnOtmoJfVgfbk9bIijc9TBg0l3AkOpe X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 132e98ca-8f22-4e05-aeb7-08d55e5ca974 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(2017052603307)(7153060)(7193020);SRVR:DBXPR05MB126; X-Microsoft-Exchange-Diagnostics: 1;DBXPR05MB126;3:QFBqUMIbPaVpx166ncyogzBBIUCyxrfKU2/5MfSYvVVmUt+18581wEqxpJKPw7smeC42qmvq/oGQVu6LHMrWYOXyIh72pZASY5yFeaOlDBnL4Pd7Ne20NJtekCA7wgGoTGcKHtckR9dqImxNl7iuTNOD18x9zxIafQz8FbYbGoGufcpB7XjHz2E2S4WKUCe2lFlaNUdnkdDhpy+Z+XWQC1i6+LS6XdIHfcGq4FZF6SCph4Eo67SKiJo+duMOseXPssKANhKLlGEQEfjGStA5ZbjQ+SYngNp5GOce7cljTZNDq4HTBroaMp1DVvyBF3MxZrEXC0atzZ92YyaQLzOd//p0mqNYt2ZPYZll0eXVo50=;25:HmFwYSrqo+TUG/3YFHaYIzVzCdOPQyJ/CqbfpKp2qnIbuoJpZJNwBXWq+yOZzPUA1tDfTlQNCNf6ck1grJZGdSY9DYBvYgSRf/tTBZFKodsBhgiiBG9WI8hNtM/Ue031R2umiXgt/ff2dS6uWsaovezqGdVUCZOmG+o4xjFxnvHmhcruMq0S0kvzqDKtaKPkPZLDlfCwLgVDadQu491IzwkH7Ed/4Xz4BGYMWOUeW1n3HPYEWUXzmVyDWUDmxU5/M4jVuyNkrvEVzPJXy8wqRLUeeLtMXs4V/494WsIoFHQtlhlVhpfbPFOnaoQiml4Vi1s8mpwKORJ6tj+39k0dST1lYaO8M4JJ+JARgjblpK0= X-MS-TrafficTypeDiagnostic: DBXPR05MB126: X-Microsoft-Exchange-Diagnostics: 1;DBXPR05MB126;31:01C0RQfaePRTC/4F5VTM9RDq0BNU4uVJNlAUytvKrTG0vamOaZ5lvnawZ//WgfkKM9OdSWVlhqlEVcZIvWUQSRY2Q9KDNaiFR58SmsogjLlJ8poJH93sCJY0Mh0gEnd/3q4+5wY2lpQzHkWyXtHP6cpZbk1T1xiVwR+Sp1GgChWZgB7AE3hkKmazjLvq+lpzY46SuUCeeEUt+06+Slc0KuWRRXfJ8/DXE12U07XB1FA=;20:N+HCN6Hs9H40d2XJ6iDVO0xwtubOOnqnVErq3MgHNhIf0bWP5AAaX53IMacMdMZnOR6P79B7wMoVwQnRpkSFzQzsXJOx8HtI6YXcT0CYR1mMKk/zcTrSIaRI3nqaf1lyvvYO3wjWA2sYKjhG7/f1rmb2mabH/7wUGcyIyhQ9opGCfdPHl2aVd2KJv7ipHT+4rAeOXspPziwGIJ0BqwmGaBOFGDvhSxDIi6bPaAcrCrDmHPts9/H09f7pSi7A4ibeJ8jkQmFXgxeZFoB8TWRHC0jOd42xzIya/crfEuHfnTutPghYZmkLs8X2xjm9UofePzMpPfaxM0Lb7iJtaduK/z7TLR4LzIHdySjbzUExZx9dcb4wl7xhfg+IXHpmRLhsj1kZsSSt9rimuIZL51sSczYZxKvDjEWdYpsuSD5nqLD2Ck39LPm1+Rqd0iq7G8LFUzf+/2Bim8f5blv3V//si1YrpcuPAY4TcMF5hvfvMGskqDBveYzeCu/Kbuq8Q36c X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(146099531331640); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93004095)(3002001)(3231023)(2400060)(944501161)(6055026)(6041268)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DBXPR05MB126;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DBXPR05MB126; X-Microsoft-Exchange-Diagnostics: 1;DBXPR05MB126;4:9lRkjkUdMcgw0b4V9LBPeBtDEu/j7jKyG5cVxcay12Ydu6HY1kmDFBzZ4oNcJzQoHxpwRHq+Y8vylkFsRowreaCO5tSezxEJnAugUT4mobMx3vHvL7Newy6J6bOnVSeAHA4ApdARpeid4C8teFkkOVuv5VvN6NKSR1/VQmYByBbSe1rVeWQvKFHKeEHzE9rIWHx4kWE1myYEU3hVzAhQ8adidBSOTlkR++9vu9B2DC87rGoyMWONApcAJQzrfLxzdHCjcXd1ZvD3whufnx5gzZV1TPFvxDVuIoyxWfb8G2LC6a5doIoNsN9gpoD+c1Z7 X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?windows-1255?Q?1;DBXPR05MB126;23:EkB/R6AmvNx/Av5XBaY/S8RU47Jv0BWUoE8YOt?= =?windows-1255?Q?4q+JOBugnAtqR3rNCwARBYjkCzspCfMWEAZ/AuBppcOWhwpTBKuPYdwQ?= =?windows-1255?Q?czlmbbRdIRYa35FnoomqzYQe3pj8wJ7OF24BrILKH/UdN4tBTLJ4osYa?= =?windows-1255?Q?WVKK9GPwHIlLloStabW82iOYV0KsprU9ktASGnkslDNqMI15U6nvrwEG?= =?windows-1255?Q?8c2OCnZMaY+W3sCcih4ZNmSMMhI56v1Z2uSQ8UKtZzb7LM4zsaFN5IG9?= =?windows-1255?Q?m4Ah9bzr46Dkv2t7ZUPBw0+bbcDJI0Ax8nyiAu5PdTlBPKYmaBRmUyON?= =?windows-1255?Q?RpM5v5K13SbIhtSU3kkOv7nfZRHyime1Jv0ZhPeSSE3yjEGe91CyWUuA?= =?windows-1255?Q?ANMRjA/GgAIZycXulS6fTIfctY7DJDNcA9L/7wntPvctNoDnF4tfVGs7?= =?windows-1255?Q?r8S60QsIDtWyCEYI22GwrZb1Eyt8Ol94d/EBJRqrNsCRo1Lm35kqbstS?= =?windows-1255?Q?73qEYPwCR8/m/7gl2mIRfLQOuPltDVk2a4fB8xDKyaZqOctJzPhnKq7A?= =?windows-1255?Q?PmJdRKqplkzFxUtrrbHACslAHHQeejVSlkhNNYG/tJYoNtQntNOy6zRs?= =?windows-1255?Q?fxwSSMnonjR3AgZwAdIRMmv/KnE2SiVrOHc00pwZBcglJ6qda/cWJYOY?= =?windows-1255?Q?dSCLuGrJoRBZjXDgfexduGxBa4FgRSPygm0RkYcBsTIbYngoh/eeqaS6?= =?windows-1255?Q?3HewPseci0ZVEAfqdgpBC7o7nBir15BZOe6iutt1in4spQvYjdx8TjRt?= =?windows-1255?Q?zWD8rHMLeq1OLrXJpHyxurc5XtPq5hNaf7NLT9z9S+XONn46XqWhdytj?= =?windows-1255?Q?3cJi+u+wME+nLuyX1mzsgQNsSLEX+lsDFQt561FKjc8+VBop73ZZWInF?= =?windows-1255?Q?3A1rtHLVCgda/PF/xOooqqxCLNE0DcAxp8D+qyPbh4kxtIBnw0kSicC0?= =?windows-1255?Q?7onf1OD3XXYMIrjB/eBxvhTnEiOg+6lW0oho/I54Xe9eCZZv5XT12pYQ?= =?windows-1255?Q?VbOQeTtbSqSDC67w6vWIgwDLrjLYlAjxpBjFSmGk8NZxb1BqYwMAJmLV?= =?windows-1255?Q?9HCqy56MWg+ceiMyk6/0uQkDHpFdh0XeUp/AfgKjX3/TiJGaSlIz+qrs?= =?windows-1255?Q?myGGpq2PMrrNVssNfJ5TfZL82OPo93CYnPByGgI3ZmfG+wbQXgFzV8GC?= =?windows-1255?Q?HnaB4PyHdeKaeyRK9MgKn52gXRrzWBmAJvGesClfxnaqXVRHDIN5EBzk?= =?windows-1255?Q?kCsvzEBudNNCWaTbv0C9UVDS/XQx+vNzUMWH8Fs0gVELM=3D?= X-Microsoft-Exchange-Diagnostics: 1;DBXPR05MB126;6:JbKxQF79OqNGMl6b9DyPYzGI81bWIYpZ7/jfkYwDmtuqh7QhWvBjl1Bs+ZPLQSu/qiUOi5Z5d/Oh48WxhrJ0zIwb0nCGB0Oqn5HTE8a27LJtc9OGTI03Epg2WAz5yULg3TuFazuT1OPiMFsUowANwRDy/YMohX48i+PgjfrT30fThwdntZ/INmf3uN7D8FunxU7gplwhf/1tq5mvHUqE3B+nky+8qCK6jBG270mukToKOuJBQKdLl6XuQm+btR4ZfZoBhnREEohQcC4fVoJjDfUk9E7fiaT1nD19BP8UcgHqPHcbvKzCR+Yym0OhGvu39QycYSP198c0Hv9R+Kp2tsZeFD8JbDNc+6tpdJL/vpI=;5:dvDsgGz/FdnVw6ERbqaYAi4PdaAZIveKCFYv862F2fvCFNOFU4l5kX59kIbYDtjnwgnukas/QVWNCjJapd0CdmbUO1jKTgVRxbBy0F45qShvKV5sMGDscPW5i4607+8RErj+TDa40ylJToTIKxVQP60WJP9KlxLxzExwivNatTQ=;24:yE1AK72C36e6nqYIDaVUDl7WU/xRNPYncu/0kzbmOL4yv12JZ9KmMpic+dx9JMoWA3CutAd/yiCY/rs9W4fhjfTXDrs50egq0yJw8riql7A=;7:l1aogvOG7mlBbySIVXX7yGuWZ0axz3QYcbveLwsJTqnwohVHz2KOfXxljwrSdr5Sj5cIHA7LjLXcQ97g+MDcPRD4Xcg93wcPhh5orppPkFW7BY2sewN0Iqq8Y86BBZPn7gr//pSQfs0Krg86RjLCthDoPYVQmuMbp3H+ammw6pPx3kcFDHpeap3Z9sYDqroVxrm3jm2clp3yYz934T68Mnoyv0/6xkEirARf52KFEeviIuFry+YB04MduHVBxJRU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 10:17:21.4073 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 132e98ca-8f22-4e05-aeb7-08d55e5ca974 X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR05MB126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/2018 12:10 PM, Jianchao Wang wrote: > After Sagi's commit (nvme-rdma: fix concurrent reset and reconnect), > both nvme-fc/rdma have following pattern: > RESETTING - quiesce blk-mq queues, teardown and delete queues/ > connections, clear out outstanding IO requests... > RECONNECTING - establish new queues/connections and some other > initializing things. I guess we can call it NVME_CTRL_CONNECTING in later patch (more suitable name for this state now). > Introduce RECONNECTING to nvme-pci transport to do the same mark. > Then we get a coherent state definition among nvme pci/rdma/fc > transports. > > Suggested-by: James Smart > Signed-off-by: Jianchao Wang > --- > drivers/nvme/host/core.c | 2 +- > drivers/nvme/host/pci.c | 19 +++++++++++++++++-- > 2 files changed, 18 insertions(+), 3 deletions(-) > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > index 230cc09..23b3e53 100644 > --- a/drivers/nvme/host/core.c > +++ b/drivers/nvme/host/core.c > @@ -242,7 +242,7 @@ bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, > switch (new_state) { > case NVME_CTRL_ADMIN_ONLY: > switch (old_state) { > - case NVME_CTRL_RESETTING: > + case NVME_CTRL_RECONNECTING: > changed = true; > /* FALLTHRU */ > default: > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index 45f843d..05344be 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -1138,9 +1138,14 @@ static bool nvme_should_reset(struct nvme_dev *dev, u32 csts) > */ > bool nssro = dev->subsystem && (csts & NVME_CSTS_NSSRO); > > - /* If there is a reset ongoing, we shouldn't reset again. */ > - if (dev->ctrl.state == NVME_CTRL_RESETTING) > + /* If there is a reset/reinit ongoing, we shouldn't reset again. */ > + switch (dev->ctrl.state) { > + case NVME_CTRL_RESETTING: > + case NVME_CTRL_RECONNECTING: > return false; > + default: > + break; > + } > > /* We shouldn't reset unless the controller is on fatal error state > * _or_ if we lost the communication with it. > @@ -2304,6 +2309,16 @@ static void nvme_reset_work(struct work_struct *work) > if (dev->ctrl.ctrl_config & NVME_CC_ENABLE) > nvme_dev_disable(dev, false); > > + /* > + * Introduce RECONNECTING state from nvme-fc/rdma transports to mark the > + * initializing procedure here. > + */ > + if (!nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_RECONNECTING)) { > + dev_warn(dev->ctrl.device, > + "failed to mark controller RECONNECTING\n"); > + goto out; > + } > + > result = nvme_pci_enable(dev); > if (result) > goto out; >