Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp286969pxu; Thu, 15 Oct 2020 04:07:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuKlmkgLKz/cKe7HsuJJHpld+DqToGJp1vDaFm69pXL0y0e/HQECqf+B84Y3qGB6TUqtn5 X-Received: by 2002:a05:6402:48d:: with SMTP id k13mr3841189edv.92.1602760041834; Thu, 15 Oct 2020 04:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602760041; cv=none; d=google.com; s=arc-20160816; b=aEAkeygdvjDC9I7EogMB7w6j2jLX5ojCL1piIBek8C9uNk8arI2NPJTUJYqgnGe9in 61V6sLkRTk8kHEhxnClxcPjHSbWitzxVhh49cjVzToTIZ+uRezWaZtOdiZxMNx0lIgiE WSdxfNs4jU+s3PFaqQVDWNhLQ7mQC2MFzE5FhBDpPR1hedDI1YmeQejkHXlMk2vsV7/i uycyNvojBxFloH5IOS5SjhQn8jAy9gKYFeC9Wmr86/c6a6/VEtVnz4Pq0Ln9ezdZjm7j /gFtnBTBWGU69jKrcqZ04v0C/y+e/t7Hy3ACwXV5Gj+tUIfn7LCcxmUCRFTiUiZ5j7bq 1BrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Mon8oii3zGIW2Gmixo1N9gE4BLHeCJtX3lO1sZeHShM=; b=WRHEmgabjgJ99vpU7BWOkunookBRc3eNU8cnwv+IprdwO9BlqIJg6ZgCH4zxoHkGxK E9pe5TZFHweGi73RJH9LFeK8Paryfsa4zal1FYSZTb91EeCFUNQMWH5e72vJb1xa/Rzr ieGtDU5ELYAgN5p+SmpUvifSMgl+dwLv01Jd+EnPLFjrpS/cd2qeEKs7dm28/F65JAVm ui36d4F7gS6V9gm6TIEhe5VIbAXmjbsS0fY7ulKAT0a9WKTpr2HbntJgjPeKIp0yZwny e3thnRYKJk7UP4cMoJRsTCsDvFYj557pchjqPg890HW3x+zoQTo8HYLTbDzuGM//CWJb axCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y04z49oM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si1656155edc.604.2020.10.15.04.06.58; Thu, 15 Oct 2020 04:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y04z49oM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729250AbgJOGtj (ORCPT + 99 others); Thu, 15 Oct 2020 02:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbgJOGtj (ORCPT ); Thu, 15 Oct 2020 02:49:39 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A70C061755; Wed, 14 Oct 2020 23:49:38 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id 67so1380045ybt.6; Wed, 14 Oct 2020 23:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mon8oii3zGIW2Gmixo1N9gE4BLHeCJtX3lO1sZeHShM=; b=Y04z49oMsViBHDeg9tl7gbxAqIKih4a/ICwylrucy+5oH1WhvaYmY5Iryh/VwH5DJU uyYowMpAlegTdDFyEhJANP+1OAEVqZTD90NwgdBHRZ7qn8T7cihqXQEv7y6YEHKYLZNy TZcxktyqKdKum0G8AraJYT5tOBVp+thCgmBJf3Nf5TpuTmGyiuA4ZiH6RZv3rFvVyNzp zjWAAUrpa0rVNzZ4xAyII+quG7jDqzGC7UenmlCAvAWXsJBTKit9gW5OfoC+zAyMI/1X 0c10YPj232fb+8WUJnHJn7vceR+lYBvuVEDDI0WwiHrx3OPR7yN8JpPqz5km/udp5mbf qgEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mon8oii3zGIW2Gmixo1N9gE4BLHeCJtX3lO1sZeHShM=; b=eFrIOo8gxiZPeuHP7IjHmcH4U67a8fQTFGzgBt4oXpzE7Y87WEpTRC9GEzOi4OTtbV eeVd9Ox9NObBjeluTSoCMoEYAYVkr1faAD/ri4An7pVfA6r0MrWTpXT5gmTN3Bwd7LxJ h0CNMwU9VRsInl+KpVIf5yuplnQ6ls6PoNcUwCHqxDtD3XNs7wuauZ5+FzZTmrGQOXgA TY+MAZCA1gm7rcBgvQVsAqsb1dIAg5EzUtUR9anvMaC7wUAnZOvovRdpnEhbOF4kfCjA q0E+CAl/rfYUpZC4wZVU2EvV45qqUWbegaO81QLBLMdNGxCVgZN5c2Ay3YJ1qufit/L8 tWlw== X-Gm-Message-State: AOAM5324QIZ7QzCCQL9/r0AaZEXGGnNjryPvH9sEGhB3b/WDwo83/TE6 AYY7dGUZ5bg7ajGrlpX+whhcr5NB7Y096nAEgr0= X-Received: by 2002:a25:6755:: with SMTP id b82mr3319215ybc.485.1602744578322; Wed, 14 Oct 2020 23:49:38 -0700 (PDT) MIME-Version: 1.0 References: <5c5bca0bdb958e456176fe6ede10ba8f838fbafc.1602263264.git.sathyanarayanan.kuppuswamy@linux.intel.com> <20201013115600.GA11976@infradead.org> <2fa2e5ed-dbfb-f335-5429-8bbb13f004e2@linux.intel.com> <20201015064329.GA12987@infradead.org> In-Reply-To: <20201015064329.GA12987@infradead.org> From: Sathyanarayanan Kuppuswamy Natarajan Date: Wed, 14 Oct 2020 23:49:27 -0700 Message-ID: Subject: Re: [PATCH v4 2/2] PCI/ERR: Split the fatal and non-fatal error recovery handling To: Christoph Hellwig Cc: "Kuppuswamy, Sathyanarayanan" , Bjorn Helgaas , okaya@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Ashok , Keith Busch Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2020 at 11:43 PM Christoph Hellwig wrote: > > On Tue, Oct 13, 2020 at 08:17:39AM -0700, Kuppuswamy, Sathyanarayanan wrote: > > > > > > On 10/13/20 4:56 AM, Christoph Hellwig wrote: > > > You might want to split out pcie_do_fatal_recovery and get rid of the > > > state argument: > > This is how it was before Keith merged fatal and non-fatal error recovery > > paths. When the comparison is between additional-parameter vs new-interface > > , I choose the former. But I can merge your change in next version. > > But now you split the implementation. Keith merged made complete sense > when the code was mostly identical. But now that the code is separate > again it doesn't make sense to hide it under a common interface that > uses a flags value to call different functions. Agreed. Already included this change in v6.