Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1700997imm; Thu, 19 Jul 2018 06:33:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRYrLTfiyaApQ0E6oLEk7T3aB9pRaxe+FCtjyeCBx1i41NMchcXKHdIIrXDqxJFfF58Z7F X-Received: by 2002:a63:b00f:: with SMTP id h15-v6mr10151641pgf.442.1532007182224; Thu, 19 Jul 2018 06:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532007182; cv=none; d=google.com; s=arc-20160816; b=OKk5IHfOQuuORtmHYRNZG2vrh6bV/wjUfY9xLWa5Dd/qIFPVOuY/blJuwQ2ZYe4B2b TIWDUx0cCtpj/PXo4tR8y+DY2KFGIepfq7v5VGhotOmmPlDnzlJoQSlgCT13lFAB7dzT 1pOdGG2PkZa3ZTrEDcoNMchJAnRowbnnf1NPHdt2ZQ3jZYUaCnGIRIL2YsiRHvAMlcDN 2qJEhpzztW4pA9b/AW2xKvICBQ9iAruP1OXRHxgkSIR19oeKILWzyBdUriMSQgb3saM6 s7uQSVM87HmpWjBwDp+foiPWPhlxN/6pZ3Y5QybIztoSBK4xM6iNgPx1cE/BGZT3mR8j 0z4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=U8BESi8Z/Z9SwUxkPvlzfGPv/SksqcpywjyrQVXLOUQ=; b=g3DaX0OcxXSeXDF65sEE/iRU/FaD8f5wstPkZo44Ur4XmoL0peX43oYoa9+M9NxgZt ZY1gdZK1e6ozOTjiH/AOymWJojgkHVunKUEGo+2rxgBuGtgE6EpAB3/wJfOa4i9dlNmU uEOom0TfxuyElHw6uBtq4xnNmhh9H2mdOI+efoCap75y6EM75nT5FqnotDbXzWNuqeNz qNslDI5GRFKDGJzHxqovJXk+wd+hsUjk3EqwNeeLh3l526vyw7jpALYPlK+GjnOKyfaM wtW83BuE37athCcoXW7kGZklAYrAbUHDteUXaIR4dpitf4yGeI7m/JVRIQraCdsJCWkh FCiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11-v6si6007475pln.161.2018.07.19.06.32.47; Thu, 19 Jul 2018 06:33:02 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731965AbeGSOOO (ORCPT + 99 others); Thu, 19 Jul 2018 10:14:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:54206 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731829AbeGSON4 (ORCPT ); Thu, 19 Jul 2018 10:13:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35816AF48; Thu, 19 Jul 2018 13:30:44 +0000 (UTC) From: Johannes Thumshirn To: Christoph Hellwig , Sagi Grimberg , Keith Busch Cc: James Smart , Hannes Reinecke , Ewan Milne , Max Gurtovoy , Linux NVMe Mailinglist , Linux Kernel Mailinglist , Johannes Thumshirn Subject: [PATCH 0/4] Rework NVMe abort handling Date: Thu, 19 Jul 2018 15:28:34 +0200 Message-Id: <20180719132838.15556-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PCI currently is the only transport we have which is doing more than queueing a transport reset but trying to abort the command first. This series brings the other transports we currently have up to the same level. On FC we can prepend a third escalation level by first to abort the FC operation before trying to abort the NVMe command. Johannes Thumshirn (4): nvme: factor out pci abort handling into core nvme: rdma: abort commands before resetting controller nvmet: loop: abort commands before resetting controller nvme: fc: abort commands before resetting controller drivers/nvme/host/core.c | 47 +++++++++++++++++++++++++++++++++++ drivers/nvme/host/fc.c | 9 +++++++ drivers/nvme/host/nvme.h | 1 + drivers/nvme/host/pci.c | 61 +++++++++------------------------------------- drivers/nvme/host/rdma.c | 22 ++++++++++++++--- drivers/nvme/target/loop.c | 17 ++++++++++++- 6 files changed, 104 insertions(+), 53 deletions(-) -- 2.16.4