Re: [PATCH] cgroup_freezer: Freezing and task move race fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tomasz Buchert
Date: Wednesday, August 11, 2010 - 12:30 am

Matt Helsley a écrit :

Maybe this is a problem with different timings. I have a qemu minimal image
with two different kernels 2.6.35 - vanilla and patached. I don't use kvm
with qemu though. You can get it from here:
	http://pentium.hopto.org/~thinred/files/qemu.tar.bz2
in the package there is also minimal '.config' for current Linus's tree.
You run it with ./run-linux <bzImageOfTheKernel>. In /root you will have
'minimal' program which is my testcase. The small problem with this image is that
ps segfaults but it's not a big problem. :)

I am also aware that:
	printf("Succesfully moved frozen task!\n");
does not show that task was moved. Only the message is just wrong. What I wanted to observe
is that the kernel actually ALLOWED to start the process of freezing.
When you run the testcase with 'strace' you'll see that 'write' returns a positive number
instead of -EBUSY. And that's the bug.

Anyway, I deduce from your later mail that you actually reproduced the problem.

Cheers,
Tomasz

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Tue Aug 10, 12:53 pm)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Wed Aug 11, 12:30 am)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Wed Aug 11, 12:35 am)
[PATCH 0/3] Two bugfixes for cgroup freezer. , Tomasz Buchert, (Thu Aug 12, 2:45 am)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Rafael J. Wysocki, (Thu Aug 12, 6:35 pm)