Would be nice to remove the limit. But I don't think get_task_struct()
can be used to prevent a task from being unlinked from the task list. It
only prevents the task_struct from being freed. So hung_task could end up
holding a reference to an unlinked task after it returns from schedule().
That doesn't mean what you are suggesting can't be implemented. Just means
that the case of the held task being unlinked needs to be handled.
Regards,
Mandeep
--