]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
disk_bfq: Use highest priority in BE class
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 12:08:28 +0000 (14:08 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 17 May 2010 12:08:28 +0000 (14:08 +0200)
Accoring to Fabio, if we use RT class, we get the same behavior as with
CFQ (mainline).

resources/disk_bfq/lib/diskbfq_fra.c

index 14e54bac5df3ee21d823ab7191c7326eaf82b6fd..fd61a05821520effde1c28fc459ea7e9368b4210 100644 (file)
@@ -159,7 +159,7 @@ int fra_DISK_bind_thread
        b = fres_contract_get_basic(contract);
        if (b->contract_type == FRSH_CT_REGULAR)
                /* Hack: frm_diskbfq calculates wrong ioprio (-1) - override it here */
-               ioprio = IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT | 7;
+               ioprio = IOPRIO_CLASS_BE << IOPRIO_CLASS_SHIFT | 0;
        else if (b->contract_type == FRSH_CT_BACKGROUND)
                 ioprio |= IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT;
        else