aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-02-07 13:07:48 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-02-07 13:07:48 -0500
commit955683d320ad8d3ce232693e8870b134006c7771 (patch)
tree82dbf7baef945595a3eee28985ec5f94e07f9125
parent9aacc135e0abe206b7d778af937babaaa7f3c199 (diff)
Rename RSM Mutex to FIFO Mutex
-rw-r--r--include/litmus/fdso.h4
-rw-r--r--include/litmus/fifo_lock.h55
-rw-r--r--include/litmus/rsm_lock.h55
-rw-r--r--litmus/Makefile2
-rw-r--r--litmus/fdso.c2
-rw-r--r--litmus/fifo_lock.c (renamed from litmus/rsm_lock.c)70
-rw-r--r--litmus/sched_cedf.c32
-rw-r--r--litmus/sched_gsn_edf.c32
8 files changed, 126 insertions, 126 deletions
diff --git a/include/litmus/fdso.h b/include/litmus/fdso.h
index 1469c0fd0460..e1a0ac24b8a2 100644
--- a/include/litmus/fdso.h
+++ b/include/litmus/fdso.h
@@ -26,7 +26,7 @@ typedef enum {
26 26
27 PCP_SEM = 5, 27 PCP_SEM = 5,
28 28
29 RSM_MUTEX = 6, 29 FIFO_MUTEX = 6,
30 IKGLP_SEM = 7, 30 IKGLP_SEM = 7,
31 KFMLP_SEM = 8, 31 KFMLP_SEM = 8,
32 32
@@ -83,7 +83,7 @@ static inline void* od_lookup(int od, obj_type_t type)
83#define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM)) 83#define lookup_srp_sem(od) ((struct srp_semaphore*) od_lookup(od, SRP_SEM))
84#define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID)) 84#define lookup_ics(od) ((struct ics*) od_lookup(od, ICS_ID))
85 85
86#define lookup_rsm_mutex(od)((struct litmus_lock*) od_lookup(od, FMLP_SEM)) 86#define lookup_fifo_mutex(od)((struct litmus_lock*) od_lookup(od, FIFO_MUTEX))
87 87
88 88
89#endif 89#endif
diff --git a/include/litmus/fifo_lock.h b/include/litmus/fifo_lock.h
new file mode 100644
index 000000000000..4b970806117f
--- /dev/null
+++ b/include/litmus/fifo_lock.h
@@ -0,0 +1,55 @@
1#ifndef LITMUS_fifo_H
2#define LITMUS_fifo_H
3
4#include <litmus/litmus.h>
5#include <litmus/binheap.h>
6#include <litmus/locking.h>
7
8/* struct for semaphore with priority inheritance */
9struct fifo_mutex {
10 struct litmus_lock litmus_lock;
11
12 /* current resource holder */
13 struct task_struct *owner;
14
15 /* highest-priority waiter */
16 struct task_struct *hp_waiter;
17
18 /* FIFO queue of waiting tasks -- for now. time stamp in the future. */
19 wait_queue_head_t wait;
20
21 /* we do some nesting within spinlocks, so we can't use the normal
22 sleeplocks found in wait_queue_head_t. */
23 raw_spinlock_t lock;
24};
25
26static inline struct fifo_mutex* fifo_mutex_from_lock(struct litmus_lock* lock)
27{
28 return container_of(lock, struct fifo_mutex, litmus_lock);
29}
30
31#ifdef CONFIG_LITMUS_DGL_SUPPORT
32int fifo_mutex_is_owner(struct litmus_lock *l, struct task_struct *t);
33int fifo_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node);
34void fifo_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait);
35#endif
36
37void fifo_mutex_propagate_increase_inheritance(struct litmus_lock* l,
38 struct task_struct* t,
39 raw_spinlock_t* to_unlock,
40 unsigned long irqflags);
41
42void fifo_mutex_propagate_decrease_inheritance(struct litmus_lock* l,
43 struct task_struct* t,
44 raw_spinlock_t* to_unlock,
45 unsigned long irqflags);
46
47int fifo_mutex_lock(struct litmus_lock* l);
48int fifo_mutex_unlock(struct litmus_lock* l);
49int fifo_mutex_close(struct litmus_lock* l);
50void fifo_mutex_free(struct litmus_lock* l);
51struct litmus_lock* fifo_mutex_new(struct litmus_lock_ops*);
52
53
54#endif
55
diff --git a/include/litmus/rsm_lock.h b/include/litmus/rsm_lock.h
deleted file mode 100644
index f0d263322a69..000000000000
--- a/include/litmus/rsm_lock.h
+++ /dev/null
@@ -1,55 +0,0 @@
1#ifndef LITMUS_RSM_H
2#define LITMUS_RSM_H
3
4#include <litmus/litmus.h>
5#include <litmus/binheap.h>
6#include <litmus/locking.h>
7
8/* struct for semaphore with priority inheritance */
9struct rsm_mutex {
10 struct litmus_lock litmus_lock;
11
12 /* current resource holder */
13 struct task_struct *owner;
14
15 /* highest-priority waiter */
16 struct task_struct *hp_waiter;
17
18 /* FIFO queue of waiting tasks -- for now. time stamp in the future. */
19 wait_queue_head_t wait;
20
21 /* we do some nesting within spinlocks, so we can't use the normal
22 sleeplocks found in wait_queue_head_t. */
23 raw_spinlock_t lock;
24};
25
26static inline struct rsm_mutex* rsm_mutex_from_lock(struct litmus_lock* lock)
27{
28 return container_of(lock, struct rsm_mutex, litmus_lock);
29}
30
31#ifdef CONFIG_LITMUS_DGL_SUPPORT
32int rsm_mutex_is_owner(struct litmus_lock *l, struct task_struct *t);
33int rsm_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, wait_queue_t* wq_node);
34void rsm_mutex_enable_priority(struct litmus_lock *l, dgl_wait_state_t* dgl_wait);
35#endif
36
37void rsm_mutex_propagate_increase_inheritance(struct litmus_lock* l,
38 struct task_struct* t,
39 raw_spinlock_t* to_unlock,
40 unsigned long irqflags);
41
42void rsm_mutex_propagate_decrease_inheritance(struct litmus_lock* l,
43 struct task_struct* t,
44 raw_spinlock_t* to_unlock,
45 unsigned long irqflags);
46
47int rsm_mutex_lock(struct litmus_lock* l);
48int rsm_mutex_unlock(struct litmus_lock* l);
49int rsm_mutex_close(struct litmus_lock* l);
50void rsm_mutex_free(struct litmus_lock* l);
51struct litmus_lock* rsm_mutex_new(struct litmus_lock_ops*);
52
53
54#endif
55
diff --git a/litmus/Makefile b/litmus/Makefile
index 67d8b8ee72bc..6ad94f69a347 100644
--- a/litmus/Makefile
+++ b/litmus/Makefile
@@ -33,7 +33,7 @@ obj-$(CONFIG_SCHED_DEBUG_TRACE) += sched_trace.o
33obj-$(CONFIG_SCHED_OVERHEAD_TRACE) += trace.o 33obj-$(CONFIG_SCHED_OVERHEAD_TRACE) += trace.o
34 34
35obj-$(CONFIG_LITMUS_LOCKING) += kfmlp_lock.o 35obj-$(CONFIG_LITMUS_LOCKING) += kfmlp_lock.o
36obj-$(CONFIG_LITMUS_NESTED_LOCKING) += rsm_lock.o ikglp_lock.o 36obj-$(CONFIG_LITMUS_NESTED_LOCKING) += fifo_lock.o ikglp_lock.o
37obj-$(CONFIG_LITMUS_SOFTIRQD) += litmus_softirq.o 37obj-$(CONFIG_LITMUS_SOFTIRQD) += litmus_softirq.o
38obj-$(CONFIG_LITMUS_PAI_SOFTIRQD) += litmus_pai_softirq.o 38obj-$(CONFIG_LITMUS_PAI_SOFTIRQD) += litmus_pai_softirq.o
39obj-$(CONFIG_LITMUS_NVIDIA) += nvidia_info.o sched_trace_external.o 39obj-$(CONFIG_LITMUS_NVIDIA) += nvidia_info.o sched_trace_external.o
diff --git a/litmus/fdso.c b/litmus/fdso.c
index 3749d6beb107..1fcc47a6a62b 100644
--- a/litmus/fdso.c
+++ b/litmus/fdso.c
@@ -33,7 +33,7 @@ static const struct fdso_ops* fdso_ops[] = {
33 &generic_lock_ops, /* DPCP_SEM */ 33 &generic_lock_ops, /* DPCP_SEM */
34 &generic_lock_ops, /* PCP_SEM */ 34 &generic_lock_ops, /* PCP_SEM */
35 35
36 &generic_lock_ops, /* RSM_MUTEX */ 36 &generic_lock_ops, /* FIFO_MUTEX */
37 &generic_lock_ops, /* IKGLP_SEM */ 37 &generic_lock_ops, /* IKGLP_SEM */
38 &generic_lock_ops, /* KFMLP_SEM */ 38 &generic_lock_ops, /* KFMLP_SEM */
39#ifdef CONFIG_LITMUS_AFFINITY_LOCKING 39#ifdef CONFIG_LITMUS_AFFINITY_LOCKING
diff --git a/litmus/rsm_lock.c b/litmus/fifo_lock.c
index beb2aa1a4f54..eb42aeee20eb 100644
--- a/litmus/rsm_lock.c
+++ b/litmus/fifo_lock.c
@@ -3,7 +3,7 @@
3 3
4#include <litmus/trace.h> 4#include <litmus/trace.h>
5#include <litmus/sched_plugin.h> 5#include <litmus/sched_plugin.h>
6#include <litmus/rsm_lock.h> 6#include <litmus/fifo_lock.h>
7 7
8#include <litmus/litmus_proc.h> 8#include <litmus/litmus_proc.h>
9 9
@@ -15,7 +15,7 @@
15 15
16 16
17/* caller is responsible for locking */ 17/* caller is responsible for locking */
18static struct task_struct* rsm_mutex_find_hp_waiter(struct rsm_mutex *mutex, 18static struct task_struct* fifo_mutex_find_hp_waiter(struct fifo_mutex *mutex,
19 struct task_struct* skip) 19 struct task_struct* skip)
20{ 20{
21 wait_queue_t *q; 21 wait_queue_t *q;
@@ -58,19 +58,19 @@ static struct task_struct* rsm_mutex_find_hp_waiter(struct rsm_mutex *mutex,
58 58
59#ifdef CONFIG_LITMUS_DGL_SUPPORT 59#ifdef CONFIG_LITMUS_DGL_SUPPORT
60 60
61int rsm_mutex_is_owner(struct litmus_lock *l, struct task_struct *t) 61int fifo_mutex_is_owner(struct litmus_lock *l, struct task_struct *t)
62{ 62{
63 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 63 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
64 return(mutex->owner == t); 64 return(mutex->owner == t);
65} 65}
66 66
67// return 1 if resource was immediatly acquired. 67// return 1 if resource was immediatly acquired.
68// Assumes mutex->lock is held. 68// Assumes mutex->lock is held.
69// Must set task state to TASK_UNINTERRUPTIBLE if task blocks. 69// Must set task state to TASK_UNINTERRUPTIBLE if task blocks.
70int rsm_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait, 70int fifo_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait,
71 wait_queue_t* wq_node) 71 wait_queue_t* wq_node)
72{ 72{
73 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 73 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
74 struct task_struct *t = dgl_wait->task; 74 struct task_struct *t = dgl_wait->task;
75 75
76 int acquired_immediatly = 0; 76 int acquired_immediatly = 0;
@@ -102,10 +102,10 @@ int rsm_mutex_dgl_lock(struct litmus_lock *l, dgl_wait_state_t* dgl_wait,
102 return acquired_immediatly; 102 return acquired_immediatly;
103} 103}
104 104
105void rsm_mutex_enable_priority(struct litmus_lock *l, 105void fifo_mutex_enable_priority(struct litmus_lock *l,
106 dgl_wait_state_t* dgl_wait) 106 dgl_wait_state_t* dgl_wait)
107{ 107{
108 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 108 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
109 struct task_struct *t = dgl_wait->task; 109 struct task_struct *t = dgl_wait->task;
110 struct task_struct *owner = mutex->owner; 110 struct task_struct *owner = mutex->owner;
111 unsigned long flags = 0; // these are unused under DGL coarse-grain locking 111 unsigned long flags = 0; // these are unused under DGL coarse-grain locking
@@ -185,11 +185,11 @@ static void select_next_lock_if_primary(struct litmus_lock *l,
185 185
186 186
187 187
188int rsm_mutex_lock(struct litmus_lock* l) 188int fifo_mutex_lock(struct litmus_lock* l)
189{ 189{
190 struct task_struct *t = current; 190 struct task_struct *t = current;
191 struct task_struct *owner; 191 struct task_struct *owner;
192 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 192 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
193 wait_queue_t wait; 193 wait_queue_t wait;
194 unsigned long flags; 194 unsigned long flags;
195 195
@@ -325,10 +325,10 @@ int rsm_mutex_lock(struct litmus_lock* l)
325 325
326 326
327 327
328int rsm_mutex_unlock(struct litmus_lock* l) 328int fifo_mutex_unlock(struct litmus_lock* l)
329{ 329{
330 struct task_struct *t = current, *next = NULL; 330 struct task_struct *t = current, *next = NULL;
331 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 331 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
332 unsigned long flags; 332 unsigned long flags;
333 333
334 struct task_struct *old_max_eff_prio; 334 struct task_struct *old_max_eff_prio;
@@ -416,7 +416,7 @@ int rsm_mutex_unlock(struct litmus_lock* l)
416 * inherit. However, we need to make sure that the 416 * inherit. However, we need to make sure that the
417 * next-highest priority in the queue is reflected in 417 * next-highest priority in the queue is reflected in
418 * hp_waiter. */ 418 * hp_waiter. */
419 mutex->hp_waiter = rsm_mutex_find_hp_waiter(mutex, next); 419 mutex->hp_waiter = fifo_mutex_find_hp_waiter(mutex, next);
420 l->nest.hp_waiter_eff_prio = (mutex->hp_waiter) ? 420 l->nest.hp_waiter_eff_prio = (mutex->hp_waiter) ?
421 effective_priority(mutex->hp_waiter) : 421 effective_priority(mutex->hp_waiter) :
422 NULL; 422 NULL;
@@ -537,12 +537,12 @@ out:
537} 537}
538 538
539 539
540void rsm_mutex_propagate_increase_inheritance(struct litmus_lock* l, 540void fifo_mutex_propagate_increase_inheritance(struct litmus_lock* l,
541 struct task_struct* t, 541 struct task_struct* t,
542 raw_spinlock_t* to_unlock, 542 raw_spinlock_t* to_unlock,
543 unsigned long irqflags) 543 unsigned long irqflags)
544{ 544{
545 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 545 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
546 546
547 // relay-style locking 547 // relay-style locking
548 lock_fine(&mutex->lock); 548 lock_fine(&mutex->lock);
@@ -634,12 +634,12 @@ void rsm_mutex_propagate_increase_inheritance(struct litmus_lock* l,
634} 634}
635 635
636 636
637void rsm_mutex_propagate_decrease_inheritance(struct litmus_lock* l, 637void fifo_mutex_propagate_decrease_inheritance(struct litmus_lock* l,
638 struct task_struct* t, 638 struct task_struct* t,
639 raw_spinlock_t* to_unlock, 639 raw_spinlock_t* to_unlock,
640 unsigned long irqflags) 640 unsigned long irqflags)
641{ 641{
642 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 642 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
643 643
644 // relay-style locking 644 // relay-style locking
645 lock_fine(&mutex->lock); 645 lock_fine(&mutex->lock);
@@ -657,7 +657,7 @@ void rsm_mutex_propagate_decrease_inheritance(struct litmus_lock* l,
657 old_max_eff_prio = top_priority(&tsk_rt(owner)->hp_blocked_tasks); 657 old_max_eff_prio = top_priority(&tsk_rt(owner)->hp_blocked_tasks);
658 658
659 binheap_delete(&l->nest.hp_binheap_node, &tsk_rt(owner)->hp_blocked_tasks); 659 binheap_delete(&l->nest.hp_binheap_node, &tsk_rt(owner)->hp_blocked_tasks);
660 mutex->hp_waiter = rsm_mutex_find_hp_waiter(mutex, NULL); 660 mutex->hp_waiter = fifo_mutex_find_hp_waiter(mutex, NULL);
661 l->nest.hp_waiter_eff_prio = (mutex->hp_waiter) ? 661 l->nest.hp_waiter_eff_prio = (mutex->hp_waiter) ?
662 effective_priority(mutex->hp_waiter) : NULL; 662 effective_priority(mutex->hp_waiter) : NULL;
663 binheap_add(&l->nest.hp_binheap_node, 663 binheap_add(&l->nest.hp_binheap_node,
@@ -740,10 +740,10 @@ void rsm_mutex_propagate_decrease_inheritance(struct litmus_lock* l,
740} 740}
741 741
742 742
743int rsm_mutex_close(struct litmus_lock* l) 743int fifo_mutex_close(struct litmus_lock* l)
744{ 744{
745 struct task_struct *t = current; 745 struct task_struct *t = current;
746 struct rsm_mutex *mutex = rsm_mutex_from_lock(l); 746 struct fifo_mutex *mutex = fifo_mutex_from_lock(l);
747 unsigned long flags; 747 unsigned long flags;
748 748
749 int owner; 749 int owner;
@@ -763,24 +763,24 @@ int rsm_mutex_close(struct litmus_lock* l)
763 /* 763 /*
764 TODO: Currently panic. FIX THIS! 764 TODO: Currently panic. FIX THIS!
765 if (owner) 765 if (owner)
766 rsm_mutex_unlock(l); 766 fifo_mutex_unlock(l);
767 */ 767 */
768 768
769 return 0; 769 return 0;
770} 770}
771 771
772void rsm_mutex_free(struct litmus_lock* lock) 772void fifo_mutex_free(struct litmus_lock* lock)
773{ 773{
774 kfree(rsm_mutex_from_lock(lock)); 774 kfree(fifo_mutex_from_lock(lock));
775} 775}
776 776
777 777
778/* The following may race if DGLs are enabled. Only examine /proc if things 778/* The following may race if DGLs are enabled. Only examine /proc if things
779 appear to be locked up. TODO: FIX THIS! Must find an elegant way to transmit 779 appear to be locked up. TODO: FIX THIS! Must find an elegant way to transmit
780 DGL lock to function. */ 780 DGL lock to function. */
781static int rsm_proc_print(char *page, char **start, off_t off, int count, int *eof, void *data) 781static int fifo_proc_print(char *page, char **start, off_t off, int count, int *eof, void *data)
782{ 782{
783 struct rsm_mutex *mutex = rsm_mutex_from_lock((struct litmus_lock*)data); 783 struct fifo_mutex *mutex = fifo_mutex_from_lock((struct litmus_lock*)data);
784 784
785 int attempts = 0; 785 int attempts = 0;
786 const int max_attempts = 10; 786 const int max_attempts = 10;
@@ -903,28 +903,28 @@ static int rsm_proc_print(char *page, char **start, off_t off, int count, int *e
903 return count - size; 903 return count - size;
904} 904}
905 905
906static void rsm_proc_add(struct litmus_lock* l) 906static void fifo_proc_add(struct litmus_lock* l)
907{ 907{
908 snprintf(l->name, LOCK_NAME_LEN, "rsm-%d_%p", l->ident, l); 908 snprintf(l->name, LOCK_NAME_LEN, "fifo-%d", l->ident);
909 909
910 l->proc_entry = litmus_add_proc_lock(l, rsm_proc_print); 910 l->proc_entry = litmus_add_proc_lock(l, fifo_proc_print);
911} 911}
912 912
913static void rsm_proc_remove(struct litmus_lock* l) 913static void fifo_proc_remove(struct litmus_lock* l)
914{ 914{
915 litmus_remove_proc_lock(l); 915 litmus_remove_proc_lock(l);
916} 916}
917 917
918static struct litmus_lock_proc_ops rsm_proc_ops = 918static struct litmus_lock_proc_ops fifo_proc_ops =
919{ 919{
920 .add = rsm_proc_add, 920 .add = fifo_proc_add,
921 .remove = rsm_proc_remove 921 .remove = fifo_proc_remove
922}; 922};
923 923
924 924
925struct litmus_lock* rsm_mutex_new(struct litmus_lock_ops* ops) 925struct litmus_lock* fifo_mutex_new(struct litmus_lock_ops* ops)
926{ 926{
927 struct rsm_mutex* mutex; 927 struct fifo_mutex* mutex;
928 928
929 mutex = kmalloc(sizeof(*mutex), GFP_KERNEL); 929 mutex = kmalloc(sizeof(*mutex), GFP_KERNEL);
930 if (!mutex) 930 if (!mutex)
@@ -949,7 +949,7 @@ struct litmus_lock* rsm_mutex_new(struct litmus_lock_ops* ops)
949 949
950 ((struct litmus_lock*)mutex)->nest.hp_waiter_ptr = &mutex->hp_waiter; 950 ((struct litmus_lock*)mutex)->nest.hp_waiter_ptr = &mutex->hp_waiter;
951 951
952 ((struct litmus_lock*)mutex)->proc = &rsm_proc_ops; 952 ((struct litmus_lock*)mutex)->proc = &fifo_proc_ops;
953 953
954 return &mutex->litmus_lock; 954 return &mutex->litmus_lock;
955} 955}
diff --git a/litmus/sched_cedf.c b/litmus/sched_cedf.c
index e2737bafa9b8..2246e9b8754e 100644
--- a/litmus/sched_cedf.c
+++ b/litmus/sched_cedf.c
@@ -51,7 +51,7 @@
51#endif 51#endif
52 52
53#ifdef CONFIG_LITMUS_NESTED_LOCKING 53#ifdef CONFIG_LITMUS_NESTED_LOCKING
54#include <litmus/rsm_lock.h> 54#include <litmus/fifo_lock.h>
55#include <litmus/ikglp_lock.h> 55#include <litmus/ikglp_lock.h>
56#endif 56#endif
57 57
@@ -1523,27 +1523,27 @@ static void nested_decrease_priority_inheritance(struct task_struct* t,
1523} 1523}
1524 1524
1525 1525
1526/* ******************** RSM MUTEX ********************** */ 1526/* ******************** FIFO MUTEX ********************** */
1527 1527
1528static struct litmus_lock_ops cedf_rsm_mutex_lock_ops = { 1528static struct litmus_lock_ops cedf_fifo_mutex_lock_ops = {
1529 .lock = rsm_mutex_lock, 1529 .lock = fifo_mutex_lock,
1530 .unlock = rsm_mutex_unlock, 1530 .unlock = fifo_mutex_unlock,
1531 .close = rsm_mutex_close, 1531 .close = fifo_mutex_close,
1532 .deallocate = rsm_mutex_free, 1532 .deallocate = fifo_mutex_free,
1533 1533
1534 .propagate_increase_inheritance = rsm_mutex_propagate_increase_inheritance, 1534 .propagate_increase_inheritance = fifo_mutex_propagate_increase_inheritance,
1535 .propagate_decrease_inheritance = rsm_mutex_propagate_decrease_inheritance, 1535 .propagate_decrease_inheritance = fifo_mutex_propagate_decrease_inheritance,
1536 1536
1537#ifdef CONFIG_LITMUS_DGL_SUPPORT 1537#ifdef CONFIG_LITMUS_DGL_SUPPORT
1538 .dgl_lock = rsm_mutex_dgl_lock, 1538 .dgl_lock = fifo_mutex_dgl_lock,
1539 .is_owner = rsm_mutex_is_owner, 1539 .is_owner = fifo_mutex_is_owner,
1540 .enable_priority = rsm_mutex_enable_priority, 1540 .enable_priority = fifo_mutex_enable_priority,
1541#endif 1541#endif
1542}; 1542};
1543 1543
1544static struct litmus_lock* cedf_new_rsm_mutex(void) 1544static struct litmus_lock* cedf_new_fifo_mutex(void)
1545{ 1545{
1546 return rsm_mutex_new(&cedf_rsm_mutex_lock_ops); 1546 return fifo_mutex_new(&cedf_fifo_mutex_lock_ops);
1547} 1547}
1548 1548
1549/* ******************** IKGLP ********************** */ 1549/* ******************** IKGLP ********************** */
@@ -1599,8 +1599,8 @@ static long cedf_allocate_lock(struct litmus_lock **lock, int type,
1599 1599
1600 switch (type) { 1600 switch (type) {
1601#ifdef CONFIG_LITMUS_NESTED_LOCKING 1601#ifdef CONFIG_LITMUS_NESTED_LOCKING
1602 case RSM_MUTEX: 1602 case FIFO_MUTEX:
1603 *lock = cedf_new_rsm_mutex(); 1603 *lock = cedf_new_fifo_mutex();
1604 break; 1604 break;
1605 1605
1606 case IKGLP_SEM: 1606 case IKGLP_SEM:
diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c
index e290aed53d4d..886bd14f677c 100644
--- a/litmus/sched_gsn_edf.c
+++ b/litmus/sched_gsn_edf.c
@@ -33,7 +33,7 @@
33#endif 33#endif
34 34
35#ifdef CONFIG_LITMUS_NESTED_LOCKING 35#ifdef CONFIG_LITMUS_NESTED_LOCKING
36#include <litmus/rsm_lock.h> 36#include <litmus/fifo_lock.h>
37#include <litmus/ikglp_lock.h> 37#include <litmus/ikglp_lock.h>
38#endif 38#endif
39 39
@@ -1457,27 +1457,27 @@ static void nested_decrease_priority_inheritance(struct task_struct* t,
1457} 1457}
1458 1458
1459 1459
1460/* ******************** RSM MUTEX ********************** */ 1460/* ******************** FIFO MUTEX ********************** */
1461 1461
1462static struct litmus_lock_ops gsnedf_rsm_mutex_lock_ops = { 1462static struct litmus_lock_ops gsnedf_fifo_mutex_lock_ops = {
1463 .lock = rsm_mutex_lock, 1463 .lock = fifo_mutex_lock,
1464 .unlock = rsm_mutex_unlock, 1464 .unlock = fifo_mutex_unlock,
1465 .close = rsm_mutex_close, 1465 .close = fifo_mutex_close,
1466 .deallocate = rsm_mutex_free, 1466 .deallocate = fifo_mutex_free,
1467 1467
1468 .propagate_increase_inheritance = rsm_mutex_propagate_increase_inheritance, 1468 .propagate_increase_inheritance = fifo_mutex_propagate_increase_inheritance,
1469 .propagate_decrease_inheritance = rsm_mutex_propagate_decrease_inheritance, 1469 .propagate_decrease_inheritance = fifo_mutex_propagate_decrease_inheritance,
1470 1470
1471#ifdef CONFIG_LITMUS_DGL_SUPPORT 1471#ifdef CONFIG_LITMUS_DGL_SUPPORT
1472 .dgl_lock = rsm_mutex_dgl_lock, 1472 .dgl_lock = fifo_mutex_dgl_lock,
1473 .is_owner = rsm_mutex_is_owner, 1473 .is_owner = fifo_mutex_is_owner,
1474 .enable_priority = rsm_mutex_enable_priority, 1474 .enable_priority = fifo_mutex_enable_priority,
1475#endif 1475#endif
1476}; 1476};
1477 1477
1478static struct litmus_lock* gsnedf_new_rsm_mutex(void) 1478static struct litmus_lock* gsnedf_new_fifo_mutex(void)
1479{ 1479{
1480 return rsm_mutex_new(&gsnedf_rsm_mutex_lock_ops); 1480 return fifo_mutex_new(&gsnedf_fifo_mutex_lock_ops);
1481} 1481}
1482 1482
1483/* ******************** IKGLP ********************** */ 1483/* ******************** IKGLP ********************** */
@@ -1739,8 +1739,8 @@ static long gsnedf_allocate_lock(struct litmus_lock **lock, int type,
1739 *lock = gsnedf_new_fmlp(); 1739 *lock = gsnedf_new_fmlp();
1740 break; 1740 break;
1741#ifdef CONFIG_LITMUS_NESTED_LOCKING 1741#ifdef CONFIG_LITMUS_NESTED_LOCKING
1742 case RSM_MUTEX: 1742 case FIFO_MUTEX:
1743 *lock = gsnedf_new_rsm_mutex(); 1743 *lock = gsnedf_new_fifo_mutex();
1744 break; 1744 break;
1745 1745
1746 case IKGLP_SEM: 1746 case IKGLP_SEM: