Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1492083pxb; Wed, 30 Mar 2022 04:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZvcd5OYphEM4o+9NaY/QbbBs6M78urPu+/NrJM5/rMI7yxVgXvaxu+ti0IGHjHUmeQciD X-Received: by 2002:a17:906:e16:b0:6df:c796:25b5 with SMTP id l22-20020a1709060e1600b006dfc79625b5mr40387198eji.302.1648641523596; Wed, 30 Mar 2022 04:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648641523; cv=none; d=google.com; s=arc-20160816; b=MLnlsM1ncvRSUnWzMoPDVR8FGKpOduFo5W0Je6b8UY1wUnOZTKX496jrZWO9JyL7Ru vL5+jMDOl8V+3a5Abi4EStEE60iKOvwPmAdY2KyqbAgLk+jTjIMva1bo+UATiHFgH7Vc ceMCUkRto8D5NO7BhfwbENqx5D04SpWujSkwRO0piRevbwSHoIviJh1UuBT3OMvrHqHh bJds8sTB6ehmVnzVi3iAdZoXLmvYwTyV2yh3V06cgg2t9zZojLiMCXdh36swxXqNRpxF ku1lv9zuepEQD/2RItNg84B9xV5CuheSyG4KoF1QRVlVbAtJPL9EVoNCBr+TjZaDYcq0 KoKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OqO7W1PHfzH33qYfZuncTVV9jr2mCHtg54htDcydpxw=; b=l13T6ja5L+8pAz7UpDJRjiO5kswPqeUJP7jf0ix0AdR1tsz2VulINQwiVmp6YF1VAa qMmUu/1gotYCHOkBJZY5fbc2G2AK45Cru5Yup+ln1Wnyqr375rgSJEUnynr5qgsT3ah5 QaxuN9671zFHheZFwsInP1baZZfMjgajU6HESX9uUvcfDHzsaHGGD46cuZYWjpznhOc1 IvHGDsYt9SlJPlM+IMY5+4KZI6hQsihB3fn/fYKY62bjlZh/siJj2S8JghLBplwSzWkz Ia217HojMmwGyzSsYWMHSAw9gwEr6wnL4zF/Y5KHhYH81nBpwR2LK6+2slzPlXFXb2lw PAzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a17090608cb00b006df76385ea6si19389505eje.838.2022.03.30.04.58.17; Wed, 30 Mar 2022 04:58:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243295AbiC3G1H (ORCPT + 99 others); Wed, 30 Mar 2022 02:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbiC3G1F (ORCPT ); Wed, 30 Mar 2022 02:27:05 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36581517F2; Tue, 29 Mar 2022 23:25:18 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id E0CD930002AA1; Wed, 30 Mar 2022 08:25:16 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id D300917F1F; Wed, 30 Mar 2022 08:25:16 +0200 (CEST) Date: Wed, 30 Mar 2022 08:25:16 +0200 From: Lukas Wunner To: Keith Busch Cc: Tanjore Suresh , Greg Kroah-Hartman , "Rafael J . Wysocki" , Christoph Hellwig , Sagi Grimberg , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v1 0/3] Asynchronous shutdown interface and example implementation Message-ID: <20220330062516.GA24340@wunner.de> References: <20220328230008.3587975-1-tansuresh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 29, 2022 at 08:07:51PM -0600, Keith Busch wrote: > Thanks, I agree we should improve shutdown times. I tried a while ago, but > lost track to follow up at the time. Here's the reference, fwiw, though it > may be out of date :): > > http://lists.infradead.org/pipermail/linux-nvme/2014-May/000826.html > > The above solution is similiar to how probe waits on an async domain. > Maybe pci can schedule the async shutdown instead of relying on low-level > drivers so that everyone implicitly benefits instead of just nvme? I'll > double-check if that's reasonable, but I'll look through this series too. Using the async API seems much more reasonable than adding new callbacks. However I'd argue that it shouldn't be necessary to amend any drivers, this should all be doable in the driver core: Basically a device needs to wait for its children and device links consumers to shutdown, apart from that everything should be able to run asynchronously. Thanks, Lukas