diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmunlock.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmunlock.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c index 00f53b2aea76..b47c1b92b82b 100644 --- a/fs/ocfs2/dlm/dlmunlock.c +++ b/fs/ocfs2/dlm/dlmunlock.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/fs.h> | 29 | #include <linux/fs.h> |
30 | #include <linux/types.h> | 30 | #include <linux/types.h> |
31 | #include <linux/slab.h> | ||
32 | #include <linux/highmem.h> | 31 | #include <linux/highmem.h> |
33 | #include <linux/init.h> | 32 | #include <linux/init.h> |
34 | #include <linux/sysctl.h> | 33 | #include <linux/sysctl.h> |
@@ -190,8 +189,8 @@ static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm, | |||
190 | actions &= ~(DLM_UNLOCK_REMOVE_LOCK| | 189 | actions &= ~(DLM_UNLOCK_REMOVE_LOCK| |
191 | DLM_UNLOCK_REGRANT_LOCK| | 190 | DLM_UNLOCK_REGRANT_LOCK| |
192 | DLM_UNLOCK_CLEAR_CONVERT_TYPE); | 191 | DLM_UNLOCK_CLEAR_CONVERT_TYPE); |
193 | } else if (status == DLM_RECOVERING || | 192 | } else if (status == DLM_RECOVERING || |
194 | status == DLM_MIGRATING || | 193 | status == DLM_MIGRATING || |
195 | status == DLM_FORWARD) { | 194 | status == DLM_FORWARD) { |
196 | /* must clear the actions because this unlock | 195 | /* must clear the actions because this unlock |
197 | * is about to be retried. cannot free or do | 196 | * is about to be retried. cannot free or do |
@@ -661,14 +660,14 @@ retry: | |||
661 | if (call_ast) { | 660 | if (call_ast) { |
662 | mlog(0, "calling unlockast(%p, %d)\n", data, status); | 661 | mlog(0, "calling unlockast(%p, %d)\n", data, status); |
663 | if (is_master) { | 662 | if (is_master) { |
664 | /* it is possible that there is one last bast | 663 | /* it is possible that there is one last bast |
665 | * pending. make sure it is flushed, then | 664 | * pending. make sure it is flushed, then |
666 | * call the unlockast. | 665 | * call the unlockast. |
667 | * not an issue if this is a mastered remotely, | 666 | * not an issue if this is a mastered remotely, |
668 | * since this lock has been removed from the | 667 | * since this lock has been removed from the |
669 | * lockres queues and cannot be found. */ | 668 | * lockres queues and cannot be found. */ |
670 | dlm_kick_thread(dlm, NULL); | 669 | dlm_kick_thread(dlm, NULL); |
671 | wait_event(dlm->ast_wq, | 670 | wait_event(dlm->ast_wq, |
672 | dlm_lock_basts_flushed(dlm, lock)); | 671 | dlm_lock_basts_flushed(dlm, lock)); |
673 | } | 672 | } |
674 | (*unlockast)(data, status); | 673 | (*unlockast)(data, status); |