Re: [PATCH 1/3] make task_struct->signal immutable/refcountable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland McGrath
Date: Friday, April 9, 2010 - 12:38 pm

Acked-by: Roland McGrath <roland@redhat.com>
but some comments:


I'm not thrilled about the field name, but whatever.  We now have three
atomic counts with subtly different meanings, and no comments anywhere
really explaining it all.

* live: created and not yet begun to exit
* count: not yet reaped
* sigcnt: task_struct not yet freed


We should never export those at all.  In fact, I would not even make it a
separate inline.  We're here to simplify the lifetime rules, not give new
ways to complicate them.  If anybody wants to keep a signal_struct alive,
they can do it with get_task_struct().


Indeed.  IMHO adding yet another atomic count here is OK only on the
proviso that we will be getting rid of the old one RSN.


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] make task_struct->signal immutable/refcoun ..., Roland McGrath, (Fri Apr 9, 12:38 pm)