public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linux.com>
To: Jeff Mahoney <jeffm@suse.com>
Cc: Linux Kernel Maling List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kobject: introduce kobj_completion
Date: Wed, 11 Sep 2013 10:15:08 -0700	[thread overview]
Message-ID: <20130911171508.GA29741@kroah.com> (raw)
In-Reply-To: <5230A1AE.401@suse.com>

On Wed, Sep 11, 2013 at 01:00:30PM -0400, Jeff Mahoney wrote:
> A common way to handle kobject lifetimes in embedded in objects with
> different lifetime rules is to pair the kobject with a struct completion.
> 
> This introduces a kobj_completion structure that can be used in place
> of the pairing, along with several convenience functions for
> initialization, release, and put-and-wait.
> 
> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
> ---
>  include/linux/kobj_completion.h |   18 ++++++++++++++

Does this really need a new .h file, or can we just cram it into
kobject.h?  It's only 13 more lines to add to that file.

thanks,

greg k-h

  reply	other threads:[~2013-09-11 17:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11 17:00 [PATCH] kobject: introduce kobj_completion Jeff Mahoney
2013-09-11 17:15 ` Greg KH [this message]
2013-09-11 18:37   ` Jeff Mahoney
2013-09-11 17:28 ` Al Viro
2013-09-11 18:35   ` Jeff Mahoney

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=20130911171508.GA29741@kroah.com \
    --to=gregkh@linux.com \
    --cc=jeffm@suse.com \
    --cc=linux-kernel@vger.kernel.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