fix for async io

From: Michael O'Reilly <michael@dont-contact.us>
Date: 17 Feb 1998 09:51:28 +0800

This is something stewart mentioned some time ago, that doesn't seem
to be integrated into the main stream.

It's a one line fix for a race condition existing in aiops.c. Stewart
has a different fix that includes some other stuff, but this
one-liner should cure the race problem.

Michael.

--- aiops.c.old Tue Feb 17 09:49:33 1998
+++ aiops.c Tue Feb 17 09:49:36 1998
@@ -735,7 +735,7 @@
            threadp->thread,
            threadp->donereq->request_type,
            threadp->status);
- if (threadp->status == _THREAD_WAITING)
+ if (!threadp->req)
            break;
        prev = threadp;
        threadp = threadp->next;
Received on Tue Jul 29 2003 - 13:15:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:42 MST