X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Ftimerfd.c;h=48305ba41e3c75d1a1b2cce8d9baa92a9d3cc259;hb=4553d469d6f88028f185de57e771dd29aba10d90;hp=6a6fc8aa1de78381ae770c976d29274445a05ded;hpb=d0473f978e61557464daa8547008fa2cd0c63a17;p=linux.git 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, break; } spin_unlock_irq(&ctx->wqh.lock); - cpu_relax(); + + if (isalarm(ctx)) + hrtimer_cancel_wait_running(&ctx->t.alarm.timer); + else + hrtimer_cancel_wait_running(&ctx->t.tmr); } /*