]> git.baikalelectronics.ru Git - 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)
commit23d40b4946289537014d9dfbf083a32f5fbe95be
treec6343de5ed38538f7f9b572c4fc3155edad9db79
parent7f5c23ab3a4cc3cf3ab3d59c1f88aae59dc0ac24
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