diff options
Diffstat (limited to 'fs/timerfd.c')
-rw-r--r-- | fs/timerfd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/timerfd.c b/fs/timerfd.c index 6a6fc8aa1de7..48305ba41e3c 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c | |||
@@ -471,7 +471,11 @@ static int do_timerfd_settime(int ufd, int flags, | |||
471 | break; | 471 | break; |
472 | } | 472 | } |
473 | spin_unlock_irq(&ctx->wqh.lock); | 473 | spin_unlock_irq(&ctx->wqh.lock); |
474 | cpu_relax(); | 474 | |
475 | if (isalarm(ctx)) | ||
476 | hrtimer_cancel_wait_running(&ctx->t.alarm.timer); | ||
477 | else | ||
478 | hrtimer_cancel_wait_running(&ctx->t.tmr); | ||
475 | } | 479 | } |
476 | 480 | ||
477 | /* | 481 | /* |