aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-10-25 12:30:53 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-25 12:30:53 -0400
commit0b9e31e9264f1bad89856afb96da1688292f13b4 (patch)
tree7a9e9b6456dce993efeed8734de0a15a1f16ae94 /fs/ocfs2/dlm
parentcf82ff7ea7695b0e82ba07bc5e9f1bd03a74e1aa (diff)
parent964fe080d94db82a3268443e9b9ece4c60246414 (diff)
Merge branch 'linus' into sched/core
Conflicts: fs/proc/array.c Merge reason: resolve conflict and queue up dependent patch. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/ocfs2/dlm')
-rw-r--r--fs/ocfs2/dlm/dlmast.c1
-rw-r--r--fs/ocfs2/dlm/dlmconvert.c1
-rw-r--r--fs/ocfs2/dlm/dlmdebug.c11
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c1
-rw-r--r--fs/ocfs2/dlm/dlmlock.c1
-rw-r--r--fs/ocfs2/dlm/dlmmaster.c1
-rw-r--r--fs/ocfs2/dlm/dlmrecovery.c1
-rw-r--r--fs/ocfs2/dlm/dlmthread.c7
-rw-r--r--fs/ocfs2/dlm/dlmunlock.c1
9 files changed, 10 insertions, 15 deletions
diff --git a/fs/ocfs2/dlm/dlmast.c b/fs/ocfs2/dlm/dlmast.c
index 81eff8e58322..01cf8cc3d286 100644
--- a/fs/ocfs2/dlm/dlmast.c
+++ b/fs/ocfs2/dlm/dlmast.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c
index 75997b4deaf3..ca96bce50e18 100644
--- a/fs/ocfs2/dlm/dlmconvert.c
+++ b/fs/ocfs2/dlm/dlmconvert.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c
index df52f706f669..42b0bad7a612 100644
--- a/fs/ocfs2/dlm/dlmdebug.c
+++ b/fs/ocfs2/dlm/dlmdebug.c
@@ -27,7 +27,6 @@
27#include <linux/types.h> 27#include <linux/types.h>
28#include <linux/slab.h> 28#include <linux/slab.h>
29#include <linux/highmem.h> 29#include <linux/highmem.h>
30#include <linux/utsname.h>
31#include <linux/sysctl.h> 30#include <linux/sysctl.h>
32#include <linux/spinlock.h> 31#include <linux/spinlock.h>
33#include <linux/debugfs.h> 32#include <linux/debugfs.h>
@@ -479,7 +478,7 @@ bail:
479 return -ENOMEM; 478 return -ENOMEM;
480} 479}
481 480
482static struct file_operations debug_purgelist_fops = { 481static const struct file_operations debug_purgelist_fops = {
483 .open = debug_purgelist_open, 482 .open = debug_purgelist_open,
484 .release = debug_buffer_release, 483 .release = debug_buffer_release,
485 .read = debug_buffer_read, 484 .read = debug_buffer_read,
@@ -539,7 +538,7 @@ bail:
539 return -ENOMEM; 538 return -ENOMEM;
540} 539}
541 540
542static struct file_operations debug_mle_fops = { 541static const struct file_operations debug_mle_fops = {
543 .open = debug_mle_open, 542 .open = debug_mle_open,
544 .release = debug_buffer_release, 543 .release = debug_buffer_release,
545 .read = debug_buffer_read, 544 .read = debug_buffer_read,
@@ -683,7 +682,7 @@ static int lockres_seq_show(struct seq_file *s, void *v)
683 return 0; 682 return 0;
684} 683}
685 684
686static struct seq_operations debug_lockres_ops = { 685static const struct seq_operations debug_lockres_ops = {
687 .start = lockres_seq_start, 686 .start = lockres_seq_start,
688 .stop = lockres_seq_stop, 687 .stop = lockres_seq_stop,
689 .next = lockres_seq_next, 688 .next = lockres_seq_next,
@@ -742,7 +741,7 @@ static int debug_lockres_release(struct inode *inode, struct file *file)
742 return seq_release_private(inode, file); 741 return seq_release_private(inode, file);
743} 742}
744 743
745static struct file_operations debug_lockres_fops = { 744static const struct file_operations debug_lockres_fops = {
746 .open = debug_lockres_open, 745 .open = debug_lockres_open,
747 .release = debug_lockres_release, 746 .release = debug_lockres_release,
748 .read = seq_read, 747 .read = seq_read,
@@ -926,7 +925,7 @@ bail:
926 return -ENOMEM; 925 return -ENOMEM;
927} 926}
928 927
929static struct file_operations debug_state_fops = { 928static const struct file_operations debug_state_fops = {
930 .open = debug_state_open, 929 .open = debug_state_open,
931 .release = debug_buffer_release, 930 .release = debug_buffer_release,
932 .read = debug_buffer_read, 931 .read = debug_buffer_read,
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 4d9e6b288dd8..0334000676d3 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -28,7 +28,6 @@
28#include <linux/types.h> 28#include <linux/types.h>
29#include <linux/slab.h> 29#include <linux/slab.h>
30#include <linux/highmem.h> 30#include <linux/highmem.h>
31#include <linux/utsname.h>
32#include <linux/init.h> 31#include <linux/init.h>
33#include <linux/spinlock.h> 32#include <linux/spinlock.h>
34#include <linux/delay.h> 33#include <linux/delay.h>
diff --git a/fs/ocfs2/dlm/dlmlock.c b/fs/ocfs2/dlm/dlmlock.c
index 83a9f2972ac8..437698e9465f 100644
--- a/fs/ocfs2/dlm/dlmlock.c
+++ b/fs/ocfs2/dlm/dlmlock.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index f8b653fcd4dd..83bcaf266b35 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index 43e6e3280569..d9fa3d22e17c 100644
--- a/fs/ocfs2/dlm/dlmrecovery.c
+++ b/fs/ocfs2/dlm/dlmrecovery.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c
index d490b66ad9d7..52ec020ea78b 100644
--- a/fs/ocfs2/dlm/dlmthread.c
+++ b/fs/ocfs2/dlm/dlmthread.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>
@@ -212,14 +211,18 @@ static int dlm_purge_lockres(struct dlm_ctxt *dlm,
212 spin_lock(&dlm->spinlock); 211 spin_lock(&dlm->spinlock);
213 } 212 }
214 213
214 spin_lock(&res->spinlock);
215 if (!list_empty(&res->purge)) { 215 if (!list_empty(&res->purge)) {
216 mlog(0, "removing lockres %.*s:%p from purgelist, " 216 mlog(0, "removing lockres %.*s:%p from purgelist, "
217 "master = %d\n", res->lockname.len, res->lockname.name, 217 "master = %d\n", res->lockname.len, res->lockname.name,
218 res, master); 218 res, master);
219 list_del_init(&res->purge); 219 list_del_init(&res->purge);
220 spin_unlock(&res->spinlock);
220 dlm_lockres_put(res); 221 dlm_lockres_put(res);
221 dlm->purge_count--; 222 dlm->purge_count--;
222 } 223 } else
224 spin_unlock(&res->spinlock);
225
223 __dlm_unhash_lockres(res); 226 __dlm_unhash_lockres(res);
224 227
225 /* lockres is not in the hash now. drop the flag and wake up 228 /* lockres is not in the hash now. drop the flag and wake up
diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c
index 756f5b0998e0..00f53b2aea76 100644
--- a/fs/ocfs2/dlm/dlmunlock.c
+++ b/fs/ocfs2/dlm/dlmunlock.c
@@ -30,7 +30,6 @@
30#include <linux/types.h> 30#include <linux/types.h>
31#include <linux/slab.h> 31#include <linux/slab.h>
32#include <linux/highmem.h> 32#include <linux/highmem.h>
33#include <linux/utsname.h>
34#include <linux/init.h> 33#include <linux/init.h>
35#include <linux/sysctl.h> 34#include <linux/sysctl.h>
36#include <linux/random.h> 35#include <linux/random.h>