[PATCH] obscure pid implementation fix

From: Kirill Korotaev (kksx_at_mail.ru)
Date: 08/31/04

  • Next message: Jeba Anandhan A: "Kernel Module Compilation Error"
    To: akpm@osdl.org, torvalds@osdl.org
    Date:	Tue, 31 Aug 2004 16:29:03 +0400
    
    
    

    This patch fixes strange and obscure pid implementation in current kernels:
    - it removes calling of put_task_struct() from detach_pid()
      under tasklist_lock. This allows to use blocking calls
      in security_task_free() hooks (in __put_task_struct()).
    - it saves some space = 5*5 ints = 100 bytes in task_struct
    - it's smaller and tidy, more straigthforward and doesn't use
      any knowledge about pids using and assignment.
    - it removes pid_links and pid_struct doesn't hold reference counters
      on task_struct. instead, new pid_structs and linked altogether and
      only one of them is inserted in hash_list.

    Kirill

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Jeba Anandhan A: "Kernel Module Compilation Error"

    Relevant Pages

    • [PATCH] obscure pid implementation fix (v2)
      ... This patch fixes strange and obscure pid implementation in current kernels: ... Signed-off-by: Kirill Korotaev ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] obscure pid implementation fix (v2)
      ... This patch fixes strange and obscure pid implementation in current kernels: ... Signed-off-by: Kirill Korotaev ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)