Message ID | 1b84f2a0-97d9-3d81-0c7a-e8b5b3dc3a02@alu.unizg.hr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | BUG: KCSAN: data-race in poll_schedule_timeout.constprop.0 / pollwake | expand |
diff --git a/fs/select.c b/fs/select.c index 0ee55af1a55c..38e12084daf1 100644 --- a/fs/select.c +++ b/fs/select.c @@ -240,7 +240,7 @@ static int poll_schedule_timeout(struct poll_wqueues *pwq, int state, int rc = -EINTR; set_current_state(state); - if (!pwq->triggered) + if (!READ_ONCE(pwq->triggered)) rc = schedule_hrtimeout_range(expires, slack, HRTIMER_MODE_ABS); __set_current_state(TASK_RUNNING);