Bug fix in AIO initialization

From: Chen, Kenneth W (kenneth.w.chen@intel.com)
Date: Mon Jul 07 2003 - 17:02:17 EST


We hit this bug when we have the following scenario:

One process initializes an AIO context and then forks out many child
processes. When those child processes exit, many BUG checks
(effectively kernel oops) were triggered from put_ioctx(ctx) in function
exit_aio().

The issue was that the AIO context was incorrectly copied upon forking
and mislead all child processes to think they have an IO context and
trying to free it where they really don't own. The following patch fix
the issue.

- Ken



-
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/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:31 EST