> > Semi-concrete: link(2) locks the target's parent and the source.
Heh, you just want me to do all the hard work :)
OK, I'll go along:
/mnt/a/x is a regular file
ln /mnt/a/x /mnt/b/x
rename /mnt/a/x /mnt/b/x/p & ln /mnt/b/x /mnt/a/q
Neither ->rename nor ->link is required to be defined on x. The
rename will first lock x, then a. The link will first lock a then x,
AFAICS.
This is probably just one of several ways to make it deadlock.
Hmm?
Miklos
--