[aoe] Process bus work items in thread
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 2 Jan 2011 02:41:12 +0000 (21:41 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 2 Jan 2011 02:41:36 +0000 (21:41 -0500)
src/aoe/driver.c

index aeab6d0..60fdb27 100644 (file)
@@ -1354,8 +1354,10 @@ static void STDCALL AoeThread_(IN void *StartContext)
         if ( AoeStop_ )
     {
       DBG ( "Stopping...\n" );
+      WvBusCancelWorkItems(&AoeBusMain);
       PsTerminateSystemThread ( STATUS_SUCCESS );
     }
+        WvBusProcessWorkItems(&AoeBusMain);
 
         KeQuerySystemTime ( &CurrentTime );
         /*