login
Header Space

 
 

Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Arjan van de Ven <arjan@...>, <linux-kernel@...>, <mingo@...>
Date: Monday, October 15, 2007 - 3:28 pm

On Mon, Oct 15 2007, Andrew Morton wrote:

Yes, completely agree! I think Arjans patch makes a heap of sense, but
some numbers would be great to see.


It should not be merged as-is, instead I'll provide a function to do
this. It should also set current->io_context->ioprio_changed. Since no
IO has been done yet at this point it doesn't matter. But we should cut
a piece of set_task_ioprio() out and provide that as a kernel helper for
this sort of thing.

Even just writing it as:

current->ioprio =  (IOPRIO_CLASS_RT << IOPRIO_CLASS_SHIFT) | IOPRIO_NORM;

would be more readable. Or perhaps this would suffice, given the above
restriction that IO hasn't been done yet:

current->ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_RT, IOPRIO_NORM);

-- 
Jens Axboe

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] Give kjournald a IOPRIO_CLASS_RT io priority, Arjan van de Ven, (Mon Oct 15, 1:46 pm)
Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority, Andrew Morton, (Mon Oct 15, 2:47 pm)
Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority, Andrew Morton, (Mon Oct 15, 5:12 pm)
Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority, Jens Axboe, (Mon Oct 15, 3:28 pm)
Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority, Andrew Morton, (Mon Oct 22, 5:23 am)
Re: [patch] Give kjournald a IOPRIO_CLASS_RT io priority, Andrew Morton, (Mon Oct 22, 5:49 am)
speck-geostationary