/* these all use task_lock(): */
exit_mm(current);
exit_fs(current);
exit_files(current);
/* Is there more locking needed for this? */
current->session = 1;
current->pgrp = 1;
current->tty = NULL;
fs = init_task.fs;
current->fs = fs;
/* This is already safe: */
atomic_inc(&fs->count);
current->files = init_task.files;
atomic_inc(¤t->files->count);
-- Dave Hansen haveblue@us.ibm.com- 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/