Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b3f720b authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by David S. Miller
Browse files

pktgen: Fix freezing problem

Add missing try_to_freeze() to one of the pktgen_thread_worker() code
paths so that it doesn't block suspend/hibernation.

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=15006



Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Reported-and-tested-by: default avatarCiprian Dorin Craciun <ciprian.craciun@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent feeb2721
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3524,6 +3524,7 @@ static int pktgen_thread_worker(void *arg)
			wait_event_interruptible_timeout(t->queue,
			wait_event_interruptible_timeout(t->queue,
							 t->control != 0,
							 t->control != 0,
							 HZ/10);
							 HZ/10);
			try_to_freeze();
			continue;
			continue;
		}
		}