Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-4423 libcfs: remove IS_PO2 and __is_po2
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
workitem.c
diff --git
a/libcfs/libcfs/workitem.c
b/libcfs/libcfs/workitem.c
index
fd47899
..
fb4fd64
100644
(file)
--- a/
libcfs/libcfs/workitem.c
+++ b/
libcfs/libcfs/workitem.c
@@
-212,7
+212,7
@@
cfs_wi_scheduler(void *arg)
/* CPT affinity scheduler? */
if (sched->ws_cptab != NULL)
if (cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt) != 0)
/* CPT affinity scheduler? */
if (sched->ws_cptab != NULL)
if (cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt) != 0)
- CWARN("
Failed to bind %s on CPT
%d\n",
+ CWARN("
Unable to bind %s on CPU partition
%d\n",
sched->ws_name, sched->ws_cpt);
spin_lock(&cfs_wi_data.wi_glock);
sched->ws_name, sched->ws_cpt);
spin_lock(&cfs_wi_data.wi_glock);
@@
-313,7
+313,7
@@
cfs_wi_sched_destroy(struct cfs_wi_sched *sched)
int i = 2;
while (sched->ws_nthreads > 0) {
int i = 2;
while (sched->ws_nthreads > 0) {
- CDEBUG(
IS_PO
2(++i) ? D_WARNING : D_NET,
+ CDEBUG(
is_power_of_
2(++i) ? D_WARNING : D_NET,
"waiting for %d threads of WI sched[%s] to "
"terminate\n", sched->ws_nthreads,
sched->ws_name);
"waiting for %d threads of WI sched[%s] to "
"terminate\n", sched->ws_nthreads,
sched->ws_name);