From: Jeff Mahoney <jeffm@suse.com>
To: Greg KH <gregkh@linux.com>
Cc: Linux Kernel Maling List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kobject: introduce kobj_completion
Date: Wed, 11 Sep 2013 14:37:32 -0400 [thread overview]
Message-ID: <5230B86C.2070708@suse.com> (raw)
In-Reply-To: <20130911171508.GA29741@kroah.com>
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
On 9/11/13 1:15 PM, Greg KH wrote:
> 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.
It doesn't need to be, but it avoids everywhere that already uses a
kobject having to include <linux/completion.h> indirectly.
-Jeff
--
Jeff Mahoney
SUSE Labs
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 841 bytes --]
next prev parent reply other threads:[~2013-09-11 18:37 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
2013-09-11 18:37 ` Jeff Mahoney [this message]
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=5230B86C.2070708@suse.com \
--to=jeffm@suse.com \
--cc=gregkh@linux.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