[LU-8304] libcfs_debug_dumplog calls potentially sleeping function in wrong state Created: 20/Jun/16 Updated: 07/Apr/20 Resolved: 07/Apr/20 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oleg Drokin | Assignee: | Oleg Drokin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
libcfs_debug_dumplog() sets task state to INTERRUPTIBLE and then calls kthread_run() that might sleep. It's mostly harmless here, but still should be avoided as the kernel prints a nastygram about it when it happens. I guess just moving the state setting to after kthread_run call is all that's needed. |
| Comments |
| Comment by Gerrit Updater [ 20/Jun/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/20876 |
| Comment by Gerrit Updater [ 02/Feb/20 ] |
|
James Simmons (jsimmons@infradead.org) uploaded a new patch: https://review.whamcloud.com/37398 |
| Comment by Gerrit Updater [ 08/Feb/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37398/ |