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

Cyrill Gorcunov
2012-02-15T19:18:59Z

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