Re: + syscalls-x86-add-__nr_kcmp-syscall-v8.patch added to -mm tree

From: Cyrill Gorcunov
Date: Wed Feb 15 2012 - 14:18:57 EST


On Wed, Feb 15, 2012 at 08:06:22PM +0100, Oleg Nesterov wrote:
>
> I think this should work. Or you can simply do
>
> struct file *file = NULL;
>
> task_lock(task);
> rcu_read_lock();
> if (task->files)
> file = fcheck_files(task->files, idx);
> rcu_read_unlock();
> task_unlock(task);
>

Yeah, thanks, this one is better.

Cyrill
--
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/