[PATCH 6/8] OProfile update

From: John Levon (levon@movementarian.org)
Date: Sat May 03 2003 - 18:44:07 EST


We were doing del_timer_sync() on shutdown, but not ensuring that any queued work
was done as well.

diff -Naur -X dontdiff linux-cvs/drivers/oprofile/buffer_sync.c linux-me/drivers/oprofile/buffer_sync.c
--- linux-cvs/drivers/oprofile/buffer_sync.c 2003-04-05 18:44:49.000000000 +0100
+++ linux-me/drivers/oprofile/buffer_sync.c 2003-05-03 20:10:44.000000000 +0100
@@ -147,6 +170,8 @@
         profile_event_unregister(EXIT_MMAP, &exit_mmap_nb);
         profile_event_unregister(EXEC_UNMAP, &exec_unmap_nb);
         del_timer_sync(&sync_timer);
+ /* timer might have queued work, make sure it's completed. */
+ flush_scheduled_work();
 }
 
  

-
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 : Wed May 07 2003 - 22:00:19 EST