Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-04-06 Thread Ian Kent
On Thu, 2015-04-02 at 13:43 +0100, David Howells wrote: > Ian Kent wrote: > > > +static struct umh_wq_entry *umh_wq_find_entry(int token) > > +{ > > + struct umh_wq_entry *this, *entry; > > + struct hlist_head *bucket; > > + unsigned int hash; > > + > > + hash = hash_32((unsigned long)

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-04-06 Thread Ian Kent
On Thu, 2015-04-02 at 13:43 +0100, David Howells wrote: Ian Kent ra...@themaw.net wrote: +static struct umh_wq_entry *umh_wq_find_entry(int token) +{ + struct umh_wq_entry *this, *entry; + struct hlist_head *bucket; + unsigned int hash; + + hash = hash_32((unsigned long)

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-04-02 Thread David Howells
Ian Kent wrote: > +static struct umh_wq_entry *umh_wq_find_entry(int token) > +{ > + struct umh_wq_entry *this, *entry; > + struct hlist_head *bucket; > + unsigned int hash; > + > + hash = hash_32((unsigned long) token, UMH_WQ_HASH_SHIFT); > + bucket = _wq_hash[hash]; > + > +

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-04-02 Thread David Howells
Ian Kent ra...@themaw.net wrote: +static struct umh_wq_entry *umh_wq_find_entry(int token) +{ + struct umh_wq_entry *this, *entry; + struct hlist_head *bucket; + unsigned int hash; + + hash = hash_32((unsigned long) token, UMH_WQ_HASH_SHIFT); + bucket =

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-31 Thread Ian Kent
On Tue, 2015-03-31 at 07:21 -0400, Jeff Layton wrote: > On Tue, 31 Mar 2015 11:14:42 +0800 > Ian Kent wrote: > > > From: Ian Kent > > > > Persistent use of process information is needed for contained > > execution in a namespace other than the root init namespace. > > > > Use a simple random

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-31 Thread Jeff Layton
On Tue, 31 Mar 2015 11:14:42 +0800 Ian Kent wrote: > From: Ian Kent > > Persistent use of process information is needed for contained > execution in a namespace other than the root init namespace. > > Use a simple random token as a key to create and store thread > information in a hashed list

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-31 Thread Jeff Layton
On Tue, 31 Mar 2015 11:14:42 +0800 Ian Kent ra...@themaw.net wrote: From: Ian Kent ik...@redhat.com Persistent use of process information is needed for contained execution in a namespace other than the root init namespace. Use a simple random token as a key to create and store thread

Re: [RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-31 Thread Ian Kent
On Tue, 2015-03-31 at 07:21 -0400, Jeff Layton wrote: On Tue, 31 Mar 2015 11:14:42 +0800 Ian Kent ra...@themaw.net wrote: From: Ian Kent ik...@redhat.com Persistent use of process information is needed for contained execution in a namespace other than the root init namespace. Use

[RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-30 Thread Ian Kent
From: Ian Kent Persistent use of process information is needed for contained execution in a namespace other than the root init namespace. Use a simple random token as a key to create and store thread information in a hashed list for use by the usermode helper thread runner. Signed-off-by: Ian

[RFC PATCH 5 1/7] kmod - add workqueue service thread store

2015-03-30 Thread Ian Kent
From: Ian Kent ik...@redhat.com Persistent use of process information is needed for contained execution in a namespace other than the root init namespace. Use a simple random token as a key to create and store thread information in a hashed list for use by the usermode helper thread runner.