diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-16 11:21:12 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2009-01-28 13:55:55 -0500 |
commit | 305a47b17c6efcc0e7b67b0bd41e2c12b7af758b (patch) | |
tree | 610c0b2642815221d57f39371d854d4751596dd5 /fs/dlm/dlm_internal.h | |
parent | 152a649b647a8ef47bb74ff9e11850fa6001bedc (diff) |
dlm: Change rwlock which is only used in write mode to a spinlock
The ls_dirtbl[].lock was an rwlock, but since it was only used in write
mode a spinlock will suffice.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r-- | fs/dlm/dlm_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index 076e86f38bc8..d01ca0a711db 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h | |||
@@ -99,7 +99,7 @@ struct dlm_direntry { | |||
99 | 99 | ||
100 | struct dlm_dirtable { | 100 | struct dlm_dirtable { |
101 | struct list_head list; | 101 | struct list_head list; |
102 | rwlock_t lock; | 102 | spinlock_t lock; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | struct dlm_rsbtable { | 105 | struct dlm_rsbtable { |