Received: by 10.223.148.5 with SMTP id 5csp7606888wrq; Thu, 18 Jan 2018 07:25:41 -0800 (PST) X-Google-Smtp-Source: ACJfBou2BlI3+dTDhDUHDPR3/1T7AEHWJOj+kEuM8YBml0Q8jJfzsM94Jc/FM92cCvSkmxunACrK X-Received: by 10.98.57.27 with SMTP id g27mr38217830pfa.128.1516289141305; Thu, 18 Jan 2018 07:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516289141; cv=none; d=google.com; s=arc-20160816; b=F3wHQgK+mDl8F8T3QWjPMn+n4HuevwYzKN0uMXPhDptBPRo4OsfeuMjZX2xqYdDZ8e LUuIspUNlDjxMraEKU7mPuh+y7V5f7aCKyjLp55Xa9L9J/nHYkfPONkRuojMuwXbiGP7 kgi2qS2HvHka4nCbrZns24cnH3qHpDAXP9BhLb1jHsehb0eNBeFnAd4U6n0YIhpaFpH+ jyg7aFNcFulqbkugKSnEtT2qY8SLn1VOifmuTWu2BkRZ2dHewoAVP0cTdtYQAamM2jfF kQvXl5bjlGB8WUZXndOJHMaY0g8g6JW/RGDDkkCOrpo51334DpTmSWTfn425tbWz+ylw o87g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6nrPilWl3STBYK61WwP+jTz6A4qyXGJurjua0Ap5qRg=; b=S9A3he5kAIu1KugUiZpzyjoFR/q/nj1TOtK8i6oaHxrPdh24F2aLyEkIHcYHrWyITZ bRpCX0aTCCZD6Ganq2QR2IGayNdJzsqiNVMcE7LYf2d9S4lAMEhdrSKInrvy2zhf20oa E3IZrJEj03RupnsJTDvXDK/rfTTU6OSaJM2heStIZbb6rOlSDWDcnbQDba6uAyJez7uW Or11NcmNwQXtjB78uTk6I30EcZcMTRcQQ8A3EOAQDcHdqKEIy4sIPCh4moXnlI+PKhlV L2AYl97M0kJ5jn01KhwMTIAvSQOZ030PhX3vJhje0DfChUb8zNhIHbC/ExVCORIScgCX /b0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=EWfuW9F0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si6966122pfh.74.2018.01.18.07.25.26; Thu, 18 Jan 2018 07:25:41 -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=@broadcom.com header.s=google header.b=EWfuW9F0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932708AbeARPX5 (ORCPT + 99 others); Thu, 18 Jan 2018 10:23:57 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38583 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932573AbeARPX4 (ORCPT ); Thu, 18 Jan 2018 10:23:56 -0500 Received: by mail-wm0-f67.google.com with SMTP id 141so23523364wme.3 for ; Thu, 18 Jan 2018 07:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=6nrPilWl3STBYK61WwP+jTz6A4qyXGJurjua0Ap5qRg=; b=EWfuW9F0ROMLL/+xz2JhJZUnLWpU2Jmz8IJshf+ozCyMtbbxIgrdHAoWZsGfBkn9t3 hIV+169ASomEKPNqSW5v2hGYIuZl6V7wVgeg5LHIS6R8L4VI9UKl20Lb22Fphg6d/a7m YYDlacnuPo5Xfxo9RIGOvjxX2qaRPyvAY8Nk4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6nrPilWl3STBYK61WwP+jTz6A4qyXGJurjua0Ap5qRg=; b=hoiuNSfQTYv02G0qNoHUn3j+BsMRhlljQ9zMgxrCP+/hheStZIPWjenu0hjw5Omq7U irgK8/yqbl6kxDY/OTH6DOSMAyuXLeLXz1I7rq0fQXk+brI4P2YQFzU9ldeidgK5MBkX 1v53JJX1jqkFH9xv3SBinLkDQqpe6uEXSUFqD41y6ib1viMqItEqdH88BScP/nonieja WxAtVBGCOqhH2w5jDc+oSArB2tibvaw9Du8jdBDKLj+pxKvc4KsMs2Zm47cIRT8Gcv21 tjH64GPeseRxXVtqku4rk034wPW8pjB3a7xtXS5Y1vETidgNZSUaImTnZ4+90TWGNnV8 +eGA== X-Gm-Message-State: AKwxytfyWP+c4YWVhLPJ8zptbY7vDMMhGi/wFj+wmVcOqj7UobOdPYBq T9qMDSvQcuJWRlfk/Vt4PLb8nkYhdvQ= X-Received: by 10.80.150.35 with SMTP id y32mr8391272eda.175.1516289034731; Thu, 18 Jan 2018 07:23:54 -0800 (PST) Received: from [10.69.49.71] ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id o6sm4800990edj.24.2018.01.18.07.23.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 07:23:54 -0800 (PST) Subject: Re: [PATCH V5 1/2] nvme-pci: introduce RECONNECTING state to mark initializing procedure To: Jianchao Wang , keith.busch@intel.com, axboe@fb.com, hch@lst.de, sagi@grimberg.me, maxg@mellanox.com Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <1516270202-8051-1-git-send-email-jianchao.w.wang@oracle.com> <1516270202-8051-2-git-send-email-jianchao.w.wang@oracle.com> From: James Smart Message-ID: Date: Thu, 18 Jan 2018 07:23:50 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; 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=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/2018 2:10 AM, 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. > 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(-) > Reviewed-by: James SmartĀ