]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: relax IOPRIO_CLASS_IDLE restrictions
authorJens Axboe <jens.axboe@oracle.com>
Mon, 28 Jan 2008 10:38:15 +0000 (11:38 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 28 Jan 2008 10:38:15 +0000 (11:38 +0100)
commit43b20f5c570bf12ad81bd6f0526258db4618fd81
tree3b0bcb433294bb144b778ae97296ad4d8626ad47
parent30f4692fae2a06b870833dfcb4f73bd3ccfb12e2
cfq-iosched: relax IOPRIO_CLASS_IDLE restrictions

Currently you must be root to set idle io prio class on a process. This
is due to the fact that the idle class is implemented as a true idle
class, meaning that it will not make progress if someone else is
requesting disk access. Unfortunately this means that it opens DOS
opportunities by locking down file system resources, hence it is root
only at the moment.

This patch relaxes the idle class a little, by removing the truly idle
part (which entals a grace period with associated timer). The
modifications make the idle class as close to zero impact as can be done
while still guarenteeing progress. This means we can relax the root only
criteria as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
fs/ioprio.c