lkml.org 
[lkml]   [2008]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] cpuset: fix wrong calculation of relax domain level
Seems ok to me:

Reviewed-by: Paul Jackson <pj@sgi.com>


Li Zefan wrote:
> - update_domain_attr(dattr, &top_cpuset);
> + update_domain_attr_tree(dattr, &top_cpuset);

Does this change mean that there is now only -one- place that calls
"update_domain_attr()", that being "update_domain_attr_tree()" ?

If so, then perhaps:
1) "update_domain_attr()" could be removed as a separate routine,
with its code folded into "update_domain_attr_tree()".
2) a proper opening comment could be provided "update_domain_attr()",
stating what it does, and its locking needs.

The above, if it makes sense, would be an additional PATCH, on top
of your present patches, further refining them.


Separate topic ...

It bothers me a little that there is a generic 'attributes' and related
*_attr() and dattr variable names, all speaking of some set of multiple
generic attributes, such as in:

struct sched_domain_attr *dattr; /* attributes for custom domains */

even though, when all is said and done, there is only one attribute,
the relax_domain_level. The generic, content-free word 'attributes'
just obfuscates the single specific value, relax_domain_level, being
managed here.

... However, I'm too lazy to propose a patch to mess with this.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214


\
 
 \ /
  Last update: 2008-07-28 07:17    [W:0.070 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site