There is some problem with calculation of ioprio values, so we set it
to a fixed value.
{
fres_block_basic *b;
int ret, ioprio = *((int*)vres->priv);
- struct fres_contract *contract = vres->perceived;
+ struct fres_contract *contract = vres->allocated;
b = fres_contract_get_basic(contract);
if (b->contract_type == FRSH_CT_REGULAR)
- ioprio = DISKBFQ_IOPRIO_DEFAULT;
+ /* Hack: frm_diskbfq calculates wrong ioprio (-1) - override it here */
+ ioprio = IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT | 7;
else if (b->contract_type == FRSH_CT_BACKGROUND)
ioprio |= IOPRIO_CLASS_IDLE << IOPRIO_CLASS_SHIFT;
else