Commit 49f5ce6d authored by Sunny Bains's avatar Sunny Bains

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

forgotten when I reverted the kernel mutex split patch.
parent efc32dcf
...@@ -3078,9 +3078,13 @@ srv_purge_thread( ...@@ -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());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment