[RFC PATCH 1/3] exec: separate thread_count for files_struct

2018-08-27 Thread Jeff Layton
Currently, we have a single refcount variable inside the files_struct. When we go to unshare the files_struct, we check this counter and if it's elevated, then we allocate a new files_struct instead of just repurposing the old one, under the assumption that that indicates that it's shared between

[RFC PATCH 1/3] exec: separate thread_count for files_struct

2018-08-27 Thread Jeff Layton
Currently, we have a single refcount variable inside the files_struct. When we go to unshare the files_struct, we check this counter and if it's elevated, then we allocate a new files_struct instead of just repurposing the old one, under the assumption that that indicates that it's shared between