From: Greg KH <gregkh@linuxfoundation.org>
To: Keith Busch <keith.busch@intel.com>
Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] driver-core: allow asynchronous device shutdown
Date: Thu, 8 May 2014 21:03:07 +0200 [thread overview]
Message-ID: <20140508190307.GA6766@kroah.com> (raw)
In-Reply-To: <1399572454-30239-2-git-send-email-keith.busch@intel.com>
On Thu, May 08, 2014 at 12:07:33PM -0600, Keith Busch wrote:
> A patch to allow .shutdown to execute asynchronously. Some devices may
> take a long time to complete a shutdown, so this patch lets a driver
> safely shutdown multiple devices asynchronously.
>
> This uses an exclusive asynchronous domain so other unrelated async
> tasks can't cause shutdown to hold up indefinitely.
>
> Signed-off-by: Keith Busch <keith.busch@intel.com>
> ---
> drivers/base/core.c | 4 ++++
> include/linux/device.h | 1 +
> 2 files changed, 5 insertions(+)
>
> diff --git a/drivers/base/core.c b/drivers/base/core.c
> index 20da3ad..71b83bb 100644
> --- a/drivers/base/core.c
> +++ b/drivers/base/core.c
> @@ -10,6 +10,7 @@
> *
> */
>
> +#include <linux/async.h>
> #include <linux/device.h>
> #include <linux/err.h>
> #include <linux/init.h>
> @@ -1926,6 +1927,8 @@ out:
> }
> EXPORT_SYMBOL_GPL(device_move);
>
> +ASYNC_DOMAIN_EXCLUSIVE(shutdown_domain);
> +EXPORT_SYMBOL(shutdown_domain);
EXPORT_SYMBOL_GPL() please, for driver core functions.
thanks,
greg k-h
next prev parent reply other threads:[~2014-05-08 19:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-08 18:07 [PATCH 0/2] Asynchronous device shutdown Keith Busch
2014-05-08 18:07 ` [PATCH 1/2] driver-core: allow asynchronous " Keith Busch
2014-05-08 19:03 ` Greg KH [this message]
2014-05-08 18:07 ` [PATCH 2/2] NVMe: Complete shutdown asynchronously Keith Busch
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=20140508190307.GA6766@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=keith.busch@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
/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