Re: GFS2 and DLM

From: Christoph Hellwig
Date: Tue Jun 27 2006 - 03:49:39 EST


On Mon, Jun 26, 2006 at 10:58:24PM +0200, Ingo Molnar wrote:
> i think you might be missing that GFS does cross-node locking in
> readlink too. (OCFS2 does not do it because it apparently does not care
> about cross-node atime correctness here it seems.) So GFS simply cannot
> use generic_readlink()!

Please read the code before giving such useless comments. ->follow_link
needs exactly the same locking as ->readlink. The whole point of
using generic_readlink is to avoid having the filesystem reimplement
almost the same code twice, once copying to a kernel buffer and once to
a user buffer.

-
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/