Re: [PATCH] kobject: introduce kobj_completion

2013-09-11 Thread Jeff Mahoney
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 t

Re: [PATCH] kobject: introduce kobj_completion

2013-09-11 Thread Jeff Mahoney
On 9/11/13 1:28 PM, Al Viro 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 t

Re: [PATCH] kobject: introduce kobj_completion

2013-09-11 Thread Al Viro
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 pairin

[PATCH] kobject: introduce kobj_completion

2013-09-11 Thread Jeff Mahoney
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,

Re: [PATCH] kobject: introduce kobj_completion

2013-09-11 Thread Greg KH
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 pairin