lkml.org 
[lkml]   [1999]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectdisk head scheduling
    While studying IDE disk performance under high load in 2.2.2, I came
    across a funny-looking line. I guess the below piece of code is
    supposed to implement elevator seeking, but in fact it inserts
    requests in random places when the disk head is moving toward the
    sector 0. Am I missing something?

    yaz

    *** drivers/block/ll_rw_blk.c~ Mon Dec 28 11:19:19 1998
    --- drivers/block/ll_rw_blk.c Wed Mar 17 20:37:18 1999
    ***************
    *** 335,341 ****
    const int before_next = IN_ORDER(req,tmp->next);

    if (!IN_ORDER(tmp,tmp->next)) {
    ! if (after_current || before_next)
    break;
    } else {
    if (after_current && before_next)
    --- 335,341 ----
    const int before_next = IN_ORDER(req,tmp->next);

    if (!IN_ORDER(tmp,tmp->next)) {
    ! if (!(after_current || before_next))
    break;
    } else {
    if (after_current && before_next)


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:50    [W:0.020 / U:88.632 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site