Cover the srv_suspend_thread() call by the kernel mutex. This change was

forgotten when I reverted the kernel mutex split patch.
This commit is contained in:
Sunny Bains 2010-05-13 06:58:43 +10:00
parent bd65e80c84
commit 50121bbb5e

View file

@ -3078,9 +3078,13 @@ srv_purge_thread(
srv_sync_log_buffer_in_background(); srv_sync_log_buffer_in_background();
} }
mutex_enter(&kernel_mutex);
/* Decrement the active count. */ /* Decrement the active count. */
srv_suspend_thread(); srv_suspend_thread();
mutex_exit(&kernel_mutex);
/* Free the thread local memory. */ /* Free the thread local memory. */
thr_local_free(os_thread_get_curr_id()); thr_local_free(os_thread_get_curr_id());