2.6.27.7 vanilla, project quota enabled and process stuck in D state (repeatable every time)
Arkadiusz Miskiewicz
arekm at maven.pl
Wed Dec 3 15:42:29 CST 2008
On Wednesday 03 of December 2008, Dave Chinner wrote:
> > D-state lock is also happening if I drop usrquota,prjquota, reboot and
> > retry the test. I assume something was written on disk that triggers the
> > problem.
>
> Unlikely - locking doesn't generally get stuck due to on disk
> corruption. Are there any other blocked processes in the machine?
> i.e. what is the entire output of 'echo w > /proc/sysrq-trigger'?
Only this one program trace visible in sysrq-w output. No other traces - so no
other blocked programs.
> Are there any other signs of general unwellness (e.g. a CPU running
> at 100% when it shouldn't be)?
Nothing wrong.
> FWIW, if you are seeing this on two hosts, can you try to build
> a reproducable test case using a minimal data set and a simple
> set of commands? If you can do this and supply us with a
> xfs_metadump image of the filesystem plus the commands to reproduce
> the problem we'll be able to find the problem pretty quickly....
I was able to reproduce it with:
- mount fs with usrquota,prjquota
- setup /home/users/arekm/rpm as project quota id = 10
- run program below twice
[arekm at farm rpm]$ more a.c
#include <stdio.h>
int main() {
int i;
i =
rename("/home/users/arekm/tmp/aa", "/home/users/arekm/rpm/testing");
printf("ret=%d %m\n", i);
return 0;
}
[arekm at farm rpm]$ touch /home/users/arekm/tmp/aa
[arekm at farm rpm]$ ./a.out
ret=-1 Invalid cross-device link
[arekm at farm rpm]$ ./a.out
second run hangs with D-state.
For clarification, rpm and tmp directories are on the same
filesystem/partition (hda2), rpm/ dir belongs to project quota id=10, tmp
doesn't belong to any project quota.
For the rest of your questions - Christoph promised to look at the issue
today, so I'll wait until tomorrow and if the issue will still be a mystery
then I'll dig out all data you asked for.
> Cheers,
>
> Dave.
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
More information about the xfs
mailing list