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>
This commit is contained in:
Steven Whitehouse
2009-01-16 16:21:12 +00:00
committed by David Teigland
parent 152a649b64
commit 305a47b17c
3 changed files with 11 additions and 11 deletions

View File

@@ -99,7 +99,7 @@ struct dlm_direntry {
struct dlm_dirtable {
struct list_head list;
rwlock_t lock;
spinlock_t lock;
};
struct dlm_rsbtable {