[Devel] Re: [PATCH 2/2] Add support for the per-task sem_undo list (v2)

Dan Smith danms at us.ibm.com
Wed Aug 4 14:38:47 PDT 2010


OL> In that case, the atomic_inc for the first task should occur
OL> earlier - as soon as it is attached to the task _and_ inserted
OL> into the objhash.

Okay, fair enough.  By my calculations, it belongs just a few lines
above, in restore_sem_undo() before a successful termination.  Then we
leave the refcount increment in restore_obj_sem_undo(), but only for
second-and-later tasks.  Agreed?

-- 
Dan Smith
IBM Linux Technology Center
email: danms at us.ibm.com
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list