lkml.org 
[lkml]   [2008]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Re: [PATCH] cgroup(fix critical bug): new handling for tasks file
    On Mon, Sep 8, 2008 at 1:19 AM, Lai Jiangshan <laijs@cn.fujitsu.com> wrote:
    >
    >> + while (index < end) {
    >> + int mid = (index + end) / 2;
    >> + if (cgrp->tasks_pids[mid] == pid) {
    >> + index = mid;
    >> + break;
    >> + } else if (cgrp->tasks_pids[mid] <= pid)
    >
    > (cgrp->tasks_pids[mid] <= pid) ===> (cgrp->tasks_pids[mid] < pid)

    Given the "if" test directly above, those two are equivalent.

    Paul


    \
     
     \ /
      Last update: 2008-09-08 17:45    [W:0.022 / U:31.092 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site