]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
GFS2: Don't withdraw on partial rindex entries
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 25 Jan 2010 17:23:24 +0000 (11:23 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 1 Feb 2010 09:59:54 +0000 (09:59 +0000)
commit55f0b4c546d1c87cccba63dc0fc5eb70e2b41733
treec6343de5ed38538f7f9b572c4fc3155edad9db79
parent0f585f14d4e34ab701283e9237ac7695cd7c9e31
GFS2: Don't withdraw on partial rindex entries

ince gfs2 writes the rindex file a block at a time, and releases the
exclusive lock after each block, it is possible that another process
will grab the lock in the middle of the write.  Since rindex entries are
not an even divisor of blocks, that other process may see partial
entries.  On grows, this is fine.  The process can simply ignore the the
partial entires. Previously, the code withdrew when it saw partial
entries. Now it simply ignores them.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c