X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fioprio.c;h=c4a1c3c65aac35ba999a4739fb3ed6549b5e1b75;hb=2576737873dc1d9ea461a5955a5f6779b569a350;hp=a7600401ecf7561115a729d4d45e98e8d5a69251;hpb=fd0928df98b9578be8a786ac0cb78a47a5e17a20;p=linux-2.6 diff --git a/fs/ioprio.c b/fs/ioprio.c index a7600401ec..c4a1c3c65a 100644 --- a/fs/ioprio.c +++ b/fs/ioprio.c @@ -54,7 +54,6 @@ static int set_task_ioprio(struct task_struct *task, int ioprio) break; } task->io_context = ioc; - ioc->task = task; } while (1); if (!err) { @@ -86,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)