Re: [PATCH] SELinux: Remove excessive interrupt disablement

From: Oleg Nesterov
Date: Wed Apr 29 2009 - 09:15:39 EST


On 04/29, David Howells wrote:
>
> @@ -2410,9 +2409,9 @@ static void selinux_bprm_committed_creds(struct linux_binprm *bprm)
> * wait permission to the new task SID. */
> read_lock_irq(&tasklist_lock);

_irq is not needed, just read_lock(&tasklist_lock) should be fine.

> psig = current->parent->sighand;
> - spin_lock_irqsave(&psig->siglock, flags);
> + spin_lock(&psig->siglock);

I think we don't need ->siglock at all.

> wake_up_interruptible(&current->parent->signal->wait_chldexit);

off-topic wrt this patch, but I believe we need

__wake_up_parent(curremt, current->real_parent);

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/