Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp112761yba; Wed, 3 Apr 2019 05:37:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRBR8zM16J0rU5Qc2dciO8OHJwwWFjWbfZgYpovf1bEWbxj3yicDiiesgO9qY5IU4fy4mH X-Received: by 2002:a65:5003:: with SMTP id f3mr60449084pgo.29.1554295054739; Wed, 03 Apr 2019 05:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554295054; cv=none; d=google.com; s=arc-20160816; b=OAGHcYCNbEF6QESKoA4sbl5ZhMgg6UNT0bNq5FzNKmmLPOiijMn5a9e0rITOh5UO7V YQFt2uQQc8ZXUQpNj5PspxX5Iiv1wW7jq80aQXZFC4WQNjQq+5ymfsxGbtpsycuqMRlW 5qtxsM3tzg3tCQJ7LJiqdLllRDtv5uWyqVNTs5seG3NWleLyIN3QTihbQ8s+L0Rc0+JT Rd2AWXr9OV6Q55mI/v81qNompzZUmezrVCk0ADB3LHKsv92pin/ggYJmGbtGo0emjdyC Py9yyCDxRUACm5FQlfIRQ+lzVOhaxUOoJdIAq5KTqtCiWJY2d+iG6XTq7hs6JNPpT3f/ S97A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:message-id:date:subject :cc:from:dkim-signature; bh=DvRHBQJQh5aPyQRkoJui/bmQxXtf6YrC3CVrZRN4uh8=; b=wYUAVrJIA+G9OgRsy67gOlQ2Avwom7y5PWyoK84yOC1iEJYws/pThKefsOndk/lsgz QpxeDgEbJ8zUNQ94ahXyM/O1g6n+SSEmGoAuvy6XKLI8VaePXDOhGqy+ZQgErtYvmuSx i/ztpTJTtiGWZLAZ2V889W+XqxyeQUqY2ThNqA6uqx99Ru3YuYaxKaJv67l83WFxvFfw RJwKFKUzOwwSiwMKFSCs1Fzr/cVWn4aBCM+rAh1IgEVo34dytC8G6Cc9HL8+YFgZ77/n N1fRNM+VC2kYVflzCoz5KG3rulqHB3l5pmPtuo+3LqNtgDqh48noMRVm87WQFURDH/bR Zqow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amazon.de header.s=amazon201209 header.b=csIaxlo0; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si6548238pgv.163.2019.04.03.05.37.19; Wed, 03 Apr 2019 05:37:34 -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; dkim=fail header.i=@amazon.de header.s=amazon201209 header.b=csIaxlo0; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbfDCMgF (ORCPT + 99 others); Wed, 3 Apr 2019 08:36:05 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:3759 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbfDCMgB (ORCPT ); Wed, 3 Apr 2019 08:36:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1554294960; x=1585830960; h=from:to:cc:subject:date:message-id:mime-version; bh=DvRHBQJQh5aPyQRkoJui/bmQxXtf6YrC3CVrZRN4uh8=; b=csIaxlo0wmwtnLZGt+AqieSGIwcQCpBb/Q04AWesoknwzxf5p8JH7P/T Z9LXGleI69Nza/v0zPQC6hl6NJxfDF1PM3ALnwVyGsLON8SXWN2YE2ZS6 4TlfVoervRLB8tuxLPN+tNs/I60yycm3NCq/brWqvfHwIrxGQCKews9Bd Q=; X-IronPort-AV: E=Sophos;i="5.60,304,1549929600"; d="scan'208";a="792315462" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Apr 2019 12:35:49 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x33CZi4I045777 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 3 Apr 2019 12:35:44 GMT Received: from EX13D18EUA002.ant.amazon.com (10.43.165.184) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 3 Apr 2019 12:35:44 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D18EUA002.ant.amazon.com (10.43.165.184) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 3 Apr 2019 12:35:43 +0000 Received: from dev-dsk-mheyne-60001.pdx1.corp.amazon.com (10.184.85.242) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 3 Apr 2019 12:35:41 +0000 Received: by dev-dsk-mheyne-60001.pdx1.corp.amazon.com (Postfix, from userid 5466572) id A312424A25; Wed, 3 Apr 2019 12:35:41 +0000 (UTC) From: Maximilian Heyne CC: David Woodhouse , Amit Shah , Maximilian Heyne , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , James Smart , , Subject: [PATCH v2 0/2] Adding per-controller timeout support to nvme Date: Wed, 3 Apr 2019 12:35:04 +0000 Message-ID: <20190403123506.122904-1-mheyne@amazon.de> X-Mailer: git-send-email 2.16.5 MIME-Version: 1.0 Content-Type: text/plain To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As different nvme controllers are connect via different fabrics, some require different timeout settings than others. This series implements per-controller timeouts in the nvme subsystem which can be set via sysfs. We have reached out to the NVMe working group to implement per-controller timeout values. These patches are paving the way for this. Changes since v1: - implement the change not only for the pci NVMe driver but also for fc, lightnvm, rdma, tcp and loop. - add an additional check when updating timeouts to not race with controller creation or deletion Maximilian Heyne (2): nvme: add per-controller io and admin timeouts nvme: add sysfs controls for io and admin timeouts drivers/nvme/host/core.c | 123 +++++++++++++++++++++++++++++++++++++++++-- drivers/nvme/host/fc.c | 2 +- drivers/nvme/host/lightnvm.c | 2 +- drivers/nvme/host/nvme.h | 2 + drivers/nvme/host/pci.c | 13 ++--- drivers/nvme/host/rdma.c | 4 +- drivers/nvme/host/tcp.c | 4 +- drivers/nvme/target/loop.c | 4 +- 8 files changed, 136 insertions(+), 18 deletions(-) -- 2.16.5 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrer: Christian Schlaeger, Ralf Herbrich Ust-ID: DE 289 237 879 Eingetragen am Amtsgericht Charlottenburg HRB 149173 B