scst: improve logging

Better to see in the logs in (S)IRQs wrong thread ID, than no thread ID under IRQ locks



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6479 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2015-08-25 03:44:31 +00:00
parent 45d7f40ec1
commit 63753d0572

View File

@@ -54,7 +54,7 @@ static inline int get_current_tid(void)
* Unfortunately, task_pid_vnr() isn't IRQ-safe, so otherwise
* it can oops. ToDo.
*/
return 0;
return current->pid;
}
return task_pid_vnr(current);
#endif