diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2007-03-22 20:08:32 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-03-26 19:51:15 -0400 |
commit | 2f5bf1f2d061dea5146aa283685ce2b00cea2f3d (patch) | |
tree | c957d5e3567146470e1b439dd56ca87b74624424 /fs/ocfs2/dlm/dlmdomain.c | |
parent | 78062cb2e54ffe0df811dce5e68b54da9b8c9025 (diff) |
ocfs2_dlm: Check for migrateable lockres in dlm_empty_lockres()
In dlm_migrate_lockres(), we check upfront whether the lockres is a
candidate for migration. This patch encapsulates that code in a separate
function so that dlm_empty_lockres() can also use it during umount. This
patch addresses the umount process spinning problem.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdomain.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmdomain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c index dbbac184c261..c558442a0b44 100644 --- a/fs/ocfs2/dlm/dlmdomain.c +++ b/fs/ocfs2/dlm/dlmdomain.c | |||
@@ -657,6 +657,8 @@ void dlm_unregister_domain(struct dlm_ctxt *dlm) | |||
657 | dlm_kick_thread(dlm, NULL); | 657 | dlm_kick_thread(dlm, NULL); |
658 | 658 | ||
659 | while (dlm_migrate_all_locks(dlm)) { | 659 | while (dlm_migrate_all_locks(dlm)) { |
660 | /* Give dlm_thread time to purge the lockres' */ | ||
661 | msleep(500); | ||
660 | mlog(0, "%s: more migration to do\n", dlm->name); | 662 | mlog(0, "%s: more migration to do\n", dlm->name); |
661 | } | 663 | } |
662 | dlm_mark_domain_leaving(dlm); | 664 | dlm_mark_domain_leaving(dlm); |