/* Locate the GTS structure for the current thread.  */
static struct gru_thread_state* gru_find_current_gts_nolock(struct gru_vma_data *vdata, int tsid)
/* Locate the GTS structure for the current thread.  */
static struct gru_thread_state* gru_find_current_gts_nolock(struct gru_vma_data *vdata, int tsid)
{
	struct gru_thread_state *gts;
	list_for_each_entry(gts, &vdata->vd_head, ts_next)
	    if (gts->ts_tsid == tsid)
		return gts;
	return NULL;
}