]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: keep cached master rsbs during recovery
authorDavid Teigland <teigland@redhat.com>
Wed, 16 Jan 2008 19:02:31 +0000 (13:02 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 30 Jan 2008 17:04:43 +0000 (11:04 -0600)
commit98ccd9a10bf0910f4f13e8f35f8fb0f34251b544
tree359544ba2ad34c1e49d4e6333b7c36cf8c7685f5
parent4c5dd361d4c8e7224d55fd60889bd780a3060b30
dlm: keep cached master rsbs during recovery

To prevent the master of an rsb from changing rapidly, an unused rsb is kept
on the "toss list" for a period of time to be reused.  The toss list was
being cleared completely for each recovery, which is unnecessary.  Much of
the benefit of the toss list can be maintained if nodes keep rsb's in their
toss list that they are the master of.  These rsb's need to be included
when the resource directory is rebuilt during recovery.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dir.c
fs/dlm/lock.c
fs/dlm/lock.h
fs/dlm/recover.c
fs/dlm/recoverd.c