From: Oleg Nesterov Date: Fri, 29 Sep 2006 09:00:52 +0000 (-0700) Subject: [PATCH] copy_process: cosmetic ->ioprio tweak X-Git-Tag: v2.6.19-rc1~722 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b160f5ecd2f1b6df2e0015dc1f319c8ef803d62;p=pandora-kernel.git [PATCH] copy_process: cosmetic ->ioprio tweak copy_process: // holds tasklist_lock + ->siglock /* * inherit ioprio */ p->ioprio = current->ioprio; Why? ->ioprio was already copied in dup_task_struct(). I guess this is needed to ensure that the child can't escape sys_ioprio_set(IOPRIO_WHO_{PGRP,USER}), yes? In that case we don't need ->siglock held, and the comment should be updated. Signed-off-by: Oleg Nesterov Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed