Re: Locking problem in overlayfs

From: David Howells
Date: Mon Oct 27 2014 - 10:39:41 EST


Miklos Szeredi <miklos@xxxxxxxxxx> wrote:

> Uh-oh. We changed nesting late in the cycle and I didn't retest with lockdep.
>
> And it's actually harmless, but AFAICS needs another level of nesting between
> I_MUTEX_CHILD and I_MUTEX_NORMAL.

In an overlay directory that shadows an empty lower directory, say
/mnt/a/empty102, do:

touch /mnt/a/empty102/x
unlink /mnt/a/empty102/x
rmdir /mnt/a/empty102

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/