Al Viro 498052bba5 New locking/refcounting for fs_struct
* all changes of current->fs are done under task_lock and write_lock of
  old fs->lock
* refcount is not atomic anymore (same protection)
* its decrements are done when removing reference from current; at the
  same time we decide whether to free it.
* put_fs_struct() is gone
* new field - ->in_exec.  Set by check_unsafe_exec() if we are trying to do
  execve() and only subthreads share fs_struct.  Cleared when finishing exec
  (success and failure alike).  Makes CLONE_FS fail with -EAGAIN if set.
* check_unsafe_exec() may fail with -EAGAIN if another execve() from subthread
  is in progress.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-03-31 23:00:26 -04:00
..
2009-01-22 13:15:57 +03:00
2009-01-22 13:15:57 +03:00
2009-01-22 13:15:58 +03:00
2009-01-22 13:15:57 +03:00
2009-03-27 14:44:01 -04:00
2009-01-22 13:15:58 +03:00
2008-11-14 10:39:25 +11:00
2009-03-22 11:28:37 -07:00
2008-10-17 02:38:36 +11:00
2009-03-27 14:44:05 -04:00
2009-01-22 13:15:55 +03:00
2009-03-27 14:44:02 -04:00
2009-01-22 13:15:58 +03:00
2009-01-22 13:15:59 +03:00
2009-03-26 02:18:35 +01:00
2009-01-22 13:15:59 +03:00
2009-03-27 14:44:03 -04:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2009-02-06 17:34:07 -08:00
2009-03-27 14:44:03 -04:00
2009-03-27 14:44:03 -04:00
2009-03-31 23:00:26 -04:00
2009-03-27 14:43:57 -04:00
2009-03-27 14:44:05 -04:00
2009-03-16 08:32:27 -06:00
2009-03-31 23:00:26 -04:00
2009-03-16 08:34:35 -06:00
2009-02-18 15:37:53 -08:00