dlm: change rsbtbl rwlock to spinlock

The rwlock is almost always used in write mode, so there's no reason
to not use a spinlock instead.

Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
David Teigland
2009-01-07 16:50:41 -06:00
parent 892c4467e3
commit c7be761a81
5 changed files with 32 additions and 32 deletions

View File

@@ -105,7 +105,7 @@ struct dlm_dirtable {
struct dlm_rsbtable {
struct list_head list;
struct list_head toss;
rwlock_t lock;
spinlock_t lock;
};
struct dlm_lkbtable {