X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Fklnds%2Fo2iblnd%2Fo2iblnd.c;h=1180ac283d458a9a2ec2a2f003fbb826976ce48d;hp=8849b99dc398f5d0c8f5b942b622c57b59640927;hb=refs%2Fchanges%2F54%2F13954%2F2;hpb=2ba660ee4e83860af1f1b72710b036dba9151948 diff --git a/lnet/klnds/o2iblnd/o2iblnd.c b/lnet/klnds/o2iblnd/o2iblnd.c index 8849b99..1180ac2 100644 --- a/lnet/klnds/o2iblnd/o2iblnd.c +++ b/lnet/klnds/o2iblnd/o2iblnd.c @@ -693,8 +693,8 @@ kiblnd_get_completion_vector(kib_conn_t *conn, int cpt) mask = cfs_cpt_cpumask(lnet_cpt_table(), cpt); /* hash NID to CPU id in this partition... */ - off = conn->ibc_peer->ibp_nid % cpus_weight(*mask); - for_each_cpu_mask(i, *mask) { + off = conn->ibc_peer->ibp_nid % cpumask_weight(mask); + for_each_cpu(i, mask) { if (off-- == 0) return i % vectors; }