Re: [PATCH 2/2] CRED: Fix __task_cred()'s lockdep check and banner comment

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Thursday, August 5, 2010 - 1:13 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


It is about the list traversal.  In the process group case it is about
traversing the pid->tasks[PIDTYPE_PGID] hlist, which is also protected
by the tasklist_lock.


I think it is totally reasonable to add a per pid lock,
that would protect the pid->task[...] hlist.  That would make
things clearer and finer grained without a lot of effort.  Just
a little more struct pid bloat, and a little extra care in fork,
when we add to those lists.

Even with the per-pgrp lock we still need a lock on the global process
list for the kill -KILL -1 case.  Which suggests that tasklist_lock is
still needed for part of kill_something_info.

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] CRED: Fix __task_cred()'s lockdep check an ..., Eric W. Biederman, (Thu Aug 5, 12:19 am)
Re: [PATCH 2/2] CRED: Fix __task_cred()'s lockdep check an ..., Eric W. Biederman, (Thu Aug 5, 1:13 pm)