lkml.org 
[lkml]   [2006]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] 8/15 cfq-iosched: convert to using the FIFO elevator defines
    Date
    Signed-off-by: Jens Axboe <axboe@suse.de>
    ---
    block/cfq-iosched.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
    index 75efc82..3770c27 100644
    --- a/block/cfq-iosched.c
    +++ b/block/cfq-iosched.c
    @@ -42,7 +42,6 @@ #define CFQ_QHASH_ENTRIES (1 << CFQ_QHAS
    #define list_entry_qhash(entry) hlist_entry((entry), struct cfq_queue, cfq_hash)

    #define list_entry_cfqq(ptr) list_entry((ptr), struct cfq_queue, cfq_list)
    -#define list_entry_fifo(ptr) list_entry((ptr), struct request, queuelist)

    #define RQ_DATA(rq) (rq)->elevator_private

    @@ -840,7 +839,7 @@ static inline struct cfq_rq *cfq_check_f
    if (!list_empty(&cfqq->fifo)) {
    int fifo = cfq_cfqq_class_sync(cfqq);

    - crq = RQ_DATA(list_entry_fifo(cfqq->fifo.next));
    + crq = RQ_DATA(rq_entry_fifo(cfqq->fifo.next));
    rq = crq->request;
    if (time_after(jiffies, rq->start_time + cfqd->cfq_fifo_expire[fifo])) {
    cfq_mark_cfqq_fifo_expire(cfqq);
    --
    1.4.1.ged0e0
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-07-13 14:49    [W:0.033 / U:2.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site