Reduce usage of current_thd

Description

current_thd needs to call relatively heavy pthread_getspecific(). There're many cases when we can easily get current thread as a parameter.

Environment

None

Status

Assignee

Unassigned

Reporter

Sergey Vojtovich

Labels

None

External issue ID

None

External issue ID

None

Time tracking

16h

Components

Fix versions

Priority

Major