From: Andrew Morton Date: Thu, 12 Apr 2007 21:45:32 +0000 (-0700) Subject: [PKTGEN]: Add try_to_freeze() X-Git-Tag: v2.6.21-rc7~11^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=09fe3ef46c5a2cc65d173df9518013e208eb3ba3;p=~shefty%2Frdma-dev.git [PKTGEN]: Add try_to_freeze() The pktgen module prevents suspend-to-disk. Fix. Acked-by: "Michal Piotrowski" Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 74a9a32b906..4b01496dc33 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -129,6 +129,7 @@ #include #include #include +#include #include #include #include @@ -3333,6 +3334,8 @@ static int pktgen_thread_worker(void *arg) t->control &= ~(T_REMDEV); } + try_to_freeze(); + set_current_state(TASK_INTERRUPTIBLE); }