use spinlocks in MCS rwlock

This commit is contained in:
Balazs Gerofi
2017-06-08 14:16:29 +09:00
parent 1ca16b9693
commit 5758dba7cf
3 changed files with 49 additions and 2 deletions

View File

@@ -29,8 +29,7 @@
#define dkprintf(...) do { if (0) kprintf(__VA_ARGS__); } while (0)
#define ekprintf(...) kprintf(__VA_ARGS__)
mcs_rwlock_lock_t fileobj_list_lock =
{{{0}, MCS_RWLOCK_TYPE_COMMON_READER, 0, 0, 0, NULL}, NULL};
mcs_rwlock_lock_t fileobj_list_lock;
static LIST_HEAD(fileobj_list);
#define FILEOBJ_PAGE_HASH_SHIFT 9

View File

@@ -3224,6 +3224,7 @@ process_unlock(struct process *proc, struct mcs_rwlock_node_irqsave *lock)
void
debug_log(unsigned long arg)
{
#if 0
struct process *p;
struct thread *t;
int i;
@@ -3276,4 +3277,5 @@ debug_log(unsigned long arg)
}
break;
}
#endif
}