Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp351289rdb; Thu, 5 Oct 2023 07:48:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf++PIFM++TZA5aop6gvfT8iIfhAIvBEzU+3FWclFBCMcm/8hY/WaNYaGolaLVPBuWB+hT X-Received: by 2002:a05:6a00:cc7:b0:68e:2d9d:b0cc with SMTP id b7-20020a056a000cc700b0068e2d9db0ccmr6599468pfv.6.1696517323844; Thu, 05 Oct 2023 07:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696517323; cv=none; d=google.com; s=arc-20160816; b=F79skVFjZGJ7UEh4ZrhKoJOavOimGP/zOMZdlvyBidPQHaYWIfcMqke9bTI76SC1NK LFf2N9baRcWP/9ndR9j+Y6dqAZC0PP5AyfrAD1zEVt/7p5+WCuVpQRLh98NLltN9+u6j K3J2V/AvEmWrEBsa8RV6ifhphAElSRlPKWQCdHLLo/kLoFvzR9ZJfZrbB+Te50xihuFT QXvcN0v64MpukcloQTyZug6At3bmlZUAeyunmyEB011iVfAyOJrfMAE8EEaWDTF2fsrm /M+3B19/Lt5W8PgBJgJE/IcNEl1C4ZZZxnrCOzqlm2wuUslZEdZC/Tlxsp4Vi6e30E/p 8AhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=irdfql5F9CG7KH158bM6uEiYIXj1dipgW+2M5ty58Y4=; fh=CxYJr6w5N+CziYTmqvH+hRereU/WvjDiqZyABcAFH6k=; b=bs+LNLJroePUiiepzO260vvwtp6X10Gfkq6/+KIviu6mr/q8KF428N2wUE7SJ8hpgZ 8zLVHhQwPb+1F3hNvzV5mlrk7x1dMv1KcPeOrHRPixHQ0+LH+q/OpUvgOw4WjzvmxTgq 8Vv3b9XYBnTU8W1+xCL0YZaTpLgMWotdCo/71aFxrKYMFhOvLdRuiU1bsnjII7/ERma9 9VzxbHoXPHESOwJ3nVtKWc+fY+k7esVZf/EqclxvpVK3WnKcYAC2YX9m6yZ95jW4J7ej CzaYaQ63zU4yOgUmbvYNLy0NgZcvwSBjcn4ofjIuMO2TQB/u92GmTUGNG7FlQFlltBlk 5Quw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vt1u/tGx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cw21-20020a056a00451500b0068e0fcf8c28si1489463pfb.336.2023.10.05.07.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vt1u/tGx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 92F22870657A; Thu, 5 Oct 2023 07:48:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239873AbjJEOr6 (ORCPT + 99 others); Thu, 5 Oct 2023 10:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239860AbjJEOoo (ORCPT ); Thu, 5 Oct 2023 10:44:44 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BA227552 for ; Thu, 5 Oct 2023 07:22:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7936C116CB; Thu, 5 Oct 2023 09:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696498584; bh=lTG9KJWY8mad3KgNcv95RiAKVUHghwr6bImXcI5LmUE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vt1u/tGxzZPl97g5dmR5Y8Qk6FBFd2S99LYXnjCMdkvZsGAjjdZFqYhsVK5YDot/7 PNEY8BC00b1g9N6Hi9Ukmqt6IXpWoUaPcrBN/lFXWJo/r87aPtkULPvlYSsB4yEvP+ MSbeSRDGSygg3snIEyLnwRns3f4lbpK5m3iru+uE= Date: Thu, 5 Oct 2023 11:36:21 +0200 From: Greg Kroah-Hartman To: Stuart Hayes Cc: linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Tanjore Suresh , Martin Belanger , Oliver O'Halloran , Daniel Wagner , Keith Busch , Lukas Wunner Subject: Re: [PATCH v4] driver core: shut down devices asynchronously Message-ID: <2023100507-refocus-stooge-08dd@gregkh> References: <20230921163443.9224-1-stuart.w.hayes@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921163443.9224-1-stuart.w.hayes@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:48:43 -0700 (PDT) On Thu, Sep 21, 2023 at 11:34:43AM -0500, Stuart Hayes wrote: > Shut down devices asynchronously, ensuring that each device is shut down > before its parents. > > This can dramatically reduce system shutdown/reboot time on systems that > have devices that take many seconds to shut down, such as some NVMe drives. > On one system tested, the shutdown time went from 11 minutes without this > patch to 55 seconds with the patch. That's a nice improvement, but I think we need a lot more testing on a wide range of systems before we can take a patch like this. Also, what about busses that don't want this type of shutdown? We allow busses to opt-in for async probing, shouldn't that be also done for shutting them down to resolve issues for busses that can not handle this? thanks, greg k-h