aboutsummaryrefslogtreecommitdiff
path: root/fs/ioprio.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-01-28 11:38:15 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-01-28 11:38:15 +0100
commit0871714e08fed7ba66cadad11b2e4f85a9dc9b96 (patch)
tree3b0bcb433294bb144b778ae97296ad4d8626ad47 /fs/ioprio.c
parentfadad878cc0640cc9cd5569998bf54b693f7b38b (diff)
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>
Diffstat (limited to 'fs/ioprio.c')
-rw-r--r--fs/ioprio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ioprio.c b/fs/ioprio.c
index 06b5d97c5fd..c4a1c3c65aa 100644
--- a/fs/ioprio.c
+++ b/fs/ioprio.c
@@ -85,8 +85,6 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
break;
case IOPRIO_CLASS_IDLE:
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
break;
case IOPRIO_CLASS_NONE:
if (data)