Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5221418yba; Mon, 13 May 2019 07:22:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp4pDyYoc7VNhnT7LZsLbC7YxRGphPk6dPJHWuKwVx6AEPXhXmD3eZAtoCI57P5g7I044t X-Received: by 2002:aa7:808d:: with SMTP id v13mr2299721pff.198.1557757349526; Mon, 13 May 2019 07:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557757349; cv=none; d=google.com; s=arc-20160816; b=V74VhL1QwtgMxcq42kE2TMSHSXI6f6bJixCHrdC4a1tALwgHJiCAFmuyLz5PBqWr0g B/J6Pmq8BY19UGCCyZTLoznXOy+TUDY1N/pXRDSi3qUqePePZgge7nGTFipbPkldyhtI /n+o9CHBf9gQAJoIsKIEHOzPEKZUyIKFKcl5a7R0EmILsGRtoYK6aPnpDkawXw1WaV8I bj8gN/uh/jHglxtGVzGtt8oFQcqdYJjjUmMf8e2kNr0Ag2TqD+o+5DlnFtjSrcY+n8Pb U8Jj1dGlx/EDB6l9Q+r5REvrMJ9MXYkIflhxjkcGUXmWtfN9uPHJrdyH9oZysd597jzh 6iVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=e5PknCC/jV5tF8qLRq+xavLFu0Kcwi6rz/let9ikH64=; b=NuwSWfttGMD6dYnz1Ul8XgZeRw5uRq6b7+wqB9QRiPT6uVzSsE5k+ubCKvew9NfYeL xTrHi4IzWyoSH3ItTYA2101E+DvuhxHMS7CR3dU+w5my1slevTuq/SJutgfzDB8gJolx zadodw9nEyMGQ3Tu3qLv389nAecrt4dHBsjk6CZzKdQrQYFMe68nMvLA+SckAKEMr8fD g0BjPcAnojgqKAv14ncInht0qdM46X6Tux9pai6oxcYVOIv9MKszfSec46RaF8WmO5MQ x0nuJuLyTkD6/Wwhq1TolmJiwCmUtEseWD1RcSlO/KYQAX0KVHlcPaiSzB3sjcZ1sZfX gFog== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13si15880488pgq.400.2019.05.13.07.22.13; Mon, 13 May 2019 07:22:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729984AbfEMN56 (ORCPT + 99 others); Mon, 13 May 2019 09:57:58 -0400 Received: from mga06.intel.com ([134.134.136.31]:63895 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727272AbfEMN56 (ORCPT ); Mon, 13 May 2019 09:57:58 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 06:57:57 -0700 X-ExtLoop1: 1 Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga008.jf.intel.com with ESMTP; 13 May 2019 06:57:56 -0700 Date: Mon, 13 May 2019 07:52:35 -0600 From: Keith Busch To: Akinobu Mita Cc: "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Johannes Berg , "Busch, Keith" , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Minwoo Im , "Heitke, Kenneth" Subject: Re: [PATCH v3 6/7] nvme-pci: trigger device coredump on command timeout Message-ID: <20190513135235.GD15318@localhost.localdomain> References: <1557676457-4195-1-git-send-email-akinobu.mita@gmail.com> <1557676457-4195-7-git-send-email-akinobu.mita@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1557676457-4195-7-git-send-email-akinobu.mita@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 12, 2019 at 08:54:16AM -0700, Akinobu Mita wrote: > @@ -2536,6 +2539,9 @@ static void nvme_reset_work(struct work_struct *work) > if (result) > goto out; > > + nvme_coredump_logs(dev); If you change nvme_coredump_logs to return an int, check it here for < 0 and abandon the reset if true. > + nvme_coredump_complete(dev); > + > if (dev->ctrl.oacs & NVME_CTRL_OACS_SEC_SUPP) { > if (!dev->ctrl.opal_dev) > dev->ctrl.opal_dev =