diff options
author | Sunil Mushran | 2011-05-19 23:34:12 +0200 |
---|---|---|
committer | Joel Becker | 2011-05-26 06:05:22 +0200 |
commit | 66effd3c681256874a81436493a933edb1701798 (patch) | |
tree | ce0b9047ee7be10b6e7e8848f731e1d6a7579731 /crypto/arc4.c | |
parent | ocfs2/dlm: Add new dlm message DLM_BEGIN_EXIT_DOMAIN_MSG (diff) | |
download | kernel-qcow2-linux-66effd3c681256874a81436493a933edb1701798.tar.gz kernel-qcow2-linux-66effd3c681256874a81436493a933edb1701798.tar.xz kernel-qcow2-linux-66effd3c681256874a81436493a933edb1701798.zip |
ocfs2/dlm: Do not migrate resource to a node that is leaving the domain
During dlm domain shutdown, o2dlm has to free all the lock resources. Ones that
have no locks and references are freed. Ones that have locks and/or references
are migrated to another node.
The first task in migration is finding a target. Currently we scan the lock
resource and find one node that either has a lock or a reference. This is not
very efficient in a parallel umount case as we might end up migrating the
lock resource to a node which itself may have to migrate it to a third node.
The patch scans the dlm->exit_domain_map to ensure the target node is not
leaving the domain. If no valid target node is found, o2dlm does not migrate
the resource but instead waits for the unlock and deref messages that will
allow it to free the resource.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions