From 4ca90dafb0765f5be696a79deb1e1c02d1d9a603 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Tue, 27 Sep 2011 08:56:03 +0200 Subject: [PATCH] --- yaml --- r: 271187 b: refs/heads/master c: 0acf00014bcfd71090c3b0d43c98e970108064e4 h: refs/heads/master i: 271185: 38bead7f38c9eef8ad4491a47a191bd997feedce 271183: 8f43c8ea0db2c494ef74d9ca209ffae81dc26ebd v: v3 --- [refs] | 2 +- trunk/drivers/lguest/core.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 4870b0ad2e73..9e9833e2413c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 89cfc99177c9270c5c6d429f6c5177ab3428ad57 +refs/heads/master: 0acf00014bcfd71090c3b0d43c98e970108064e4 diff --git a/trunk/drivers/lguest/core.c b/trunk/drivers/lguest/core.c index 5c13e93898f9..b5fdcb78a75b 100644 --- a/trunk/drivers/lguest/core.c +++ b/trunk/drivers/lguest/core.c @@ -232,6 +232,13 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) } } + /* + * All long-lived kernel loops need to check with this horrible + * thing called the freezer. If the Host is trying to suspend, + * it stops us. + */ + try_to_freeze(); + /* Check for signals */ if (signal_pending(current)) return -ERESTARTSYS; @@ -245,13 +252,6 @@ int run_guest(struct lg_cpu *cpu, unsigned long __user *user) if (irq < LGUEST_IRQS) try_deliver_interrupt(cpu, irq, more); - /* - * All long-lived kernel loops need to check with this horrible - * thing called the freezer. If the Host is trying to suspend, - * it stops us. - */ - try_to_freeze(); - /* * Just make absolutely sure the Guest is still alive. One of * those hypercalls could have been fatal, for example.