From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B5F3ECDE5F for ; Thu, 19 Jul 2018 14:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C093C2084C for ; Thu, 19 Jul 2018 14:21:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C093C2084C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731583AbeGSPEb (ORCPT ); Thu, 19 Jul 2018 11:04:31 -0400 Received: from verein.lst.de ([213.95.11.211]:33722 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeGSPEb (ORCPT ); Thu, 19 Jul 2018 11:04:31 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 879FE68D43; Thu, 19 Jul 2018 16:23:55 +0200 (CEST) Date: Thu, 19 Jul 2018 16:23:55 +0200 From: Christoph Hellwig To: Johannes Thumshirn Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , James Smart , Hannes Reinecke , Ewan Milne , Max Gurtovoy , Linux NVMe Mailinglist , Linux Kernel Mailinglist Subject: Re: [PATCH 0/4] Rework NVMe abort handling Message-ID: <20180719142355.GA18800@lst.de> References: <20180719132838.15556-1-jthumshirn@suse.de> <20180719134203.GA15212@lst.de> <20180719141025.yveza2svhvc2r4lw@linux-x5ow.site> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180719141025.yveza2svhvc2r4lw@linux-x5ow.site> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 04:10:25PM +0200, Johannes Thumshirn wrote: > The problem I'm trying to solve here is really just single commands > timing out because of i.e. a bad switch in between which causes frame > loss somewhere. And that is exactly the case where NVMe abort does not actually work in any sensible way. Remember that while NVMe guarantes ordered delivery inside a given queue it does not guarantee anything between multiple queues. So now you have your buggy FC setup where an I/O command times out because your switch delayed it for two hours due to a firmware bug. After 30 seconds we send an abort over the admin queue, which happens to pass through just fine. The controller will tell you: no command found as it has never seen it. No with the the code following what we have in PCIe that just means we'll eventually controller reset after the I/O command times out the second time as we still won't have seen a completion for it. If you incorrectly just continue and resend the command we'll actually get the command sent twice and thus a potential bug once the original command just gets sent along.