login
Header Space

 
 

Re: [PATCH] task containersv11 add tasks file interface fix for cpusets

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Menage <menage@...>
Cc: <akpm@...>, <nickpiggin@...>, <a.p.zijlstra@...>, <serue@...>, <clg@...>, <linux-kernel@...>, <ebiederm@...>, <rientjes@...>, <svaidy@...>, <xemul@...>, <containers@...>, <balbir@...>
Date: Saturday, October 6, 2007 - 4:24 am

Paul Menage wrote:

This isn't working for me.

The key kernel routine for updating a tasks cpus_allowed
cannot be called while holding a spinlock.

But the above loop holds a spinlock, css_set_lock, between
the cgroup_iter_start and the cgroup_iter_end.

I end up generating complaints of:
	BUG: scheduling while atomic
when I invoke the set_cpus_allowed() above.

Should css_set_lock be a mutex?  Locking changes like that
can be risky.

Or perhaps there should be another callback, called only by
attach() requests back to the same group.  Likely cpusets would
be the only subsystem interested in plugging that callback.

That, or my original patch, which calls the attach routine
even if re-attaching to the current cgroup ...

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] task containersv11 add tasks file interface fix ..., Paul Jackson, (Sat Oct 6, 4:24 am)
Re: [PATCH] task containersv11 add tasks file interface fix ..., Eric W. Biederman, (Thu Oct 11, 7:20 pm)
speck-geostationary