mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user