| @@ -9098,15 +9098,15 @@ static inline int preempt_count_equals(int preempt_offset) · 9097 unmodified lines |
| 9098 | | 9098 | |
| 9099 | void __might_sleep(const char *file, int line, int preempt_offset) | 9099 | void __might_sleep(const char *file, int line, int preempt_offset) |
| 9100 | { | 9100 | { |
| | 9101 | unsigned int state = get_current_state(); |
| 9101 | /* | 9102 | /* |
| 9102 | * Blocking primitives will set (and therefore destroy) current->state, | 9103 | * Blocking primitives will set (and therefore destroy) current->state, |
| 9103 | * since we will exit with TASK_RUNNING make sure we enter with it, | 9104 | * since we will exit with TASK_RUNNING make sure we enter with it, |
| 9104 | * otherwise we will destroy state. | 9105 | * otherwise we will destroy state. |
| 9105 | */ | 9106 | */ |
| 9106 | WARN_ONCE(current->state != TASK_RUNNING && current->task_state_change, | 9107 | WARN_ONCE(state != TASK_RUNNING && current->task_state_change, |
| 9107 | "do not call blocking ops when !TASK_RUNNING; " | 9108 | "do not call blocking ops when !TASK_RUNNING; " |
| 9108 | "state=%lx set at [<%p>] %pS\n", | 9109 | "state=%x set at [<%p>] %pS\n", state, |
| 9109 | current->state, | | |
| 9110 | (void *)current->task_state_change, | 9110 | (void *)current->task_state_change, |
| 9111 | (void *)current->task_state_change); | 9111 | (void *)current->task_state_change); |
| 9112 | | 9112 | |