mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: stuart hayes <stuart.w.hayes@gmail.com>
To: linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Tanjore Suresh <tansuresh@google.com>,
	Martin Belanger <Martin.Belanger@dell.com>,
	Oliver O'Halloran <oohall@gmail.com>,
	Daniel Wagner <dwagner@suse.de>, Keith Busch <kbusch@kernel.org>,
	Lukas Wunner <lukas@wunner.de>
Subject: Re: [PATCH v2] driver core: shut down devices asynchronously
Date: Sat, 16 Sep 2023 15:02:16 -0500	[thread overview]
Message-ID: <9770fe32-2b0c-639e-481a-dd8686e5eb7d@gmail.com> (raw)
In-Reply-To: <20230913210516.3545-1-stuart.w.hayes@gmail.com>



On 9/13/2023 4:05 PM, 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.
> 
> Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com>
> ---
> v1->v2: rewritten using kernel async code (suggested by Lukas Wunner)
> ---
> 
>   drivers/base/base.h   |   2 +
>   drivers/base/core.c   | 135 ++++++++++++++++++++++++------------------
>   include/linux/async.h |   6 ++
>   3 files changed, 87 insertions(+), 56 deletions(-)
> 

Please disregard this patch... I realized this could be done in a simpler way.  I'll send a V3 this week.

      parent reply	other threads:[~2023-09-16 20:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13 21:05 Stuart Hayes
2023-09-14  6:25 ` kernel test robot
2023-09-16 20:02 ` stuart hayes [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9770fe32-2b0c-639e-481a-dd8686e5eb7d@gmail.com \
    --to=stuart.w.hayes@gmail.com \
    --cc=Martin.Belanger@dell.com \
    --cc=dwagner@suse.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbusch@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=oohall@gmail.com \
    --cc=rafael@kernel.org \
    --cc=tansuresh@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®