aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index 848407b79b4f..ab643475093f 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -75,6 +75,7 @@ asmlinkage long sys_litmus_lock(int lock_od)
75 entry = get_entry_for_od(lock_od); 75 entry = get_entry_for_od(lock_od);
76 if (entry && is_lock(entry)) { 76 if (entry && is_lock(entry)) {
77 l = get_lock(entry); 77 l = get_lock(entry);
78 TRACE_CUR("attempts to lock 0x%p\n", l);
78 err = l->ops->lock(l); 79 err = l->ops->lock(l);
79 } 80 }
80 81
@@ -96,7 +97,8 @@ asmlinkage long sys_litmus_unlock(int lock_od)
96 entry = get_entry_for_od(lock_od); 97 entry = get_entry_for_od(lock_od);
97 if (entry && is_lock(entry)) { 98 if (entry && is_lock(entry)) {
98 l = get_lock(entry); 99 l = get_lock(entry);
99 err = l->ops->lock(l); 100 TRACE_CUR("attempts to unlock 0x%p\n", l);
101 err = l->ops->unlock(l);
100 } 102 }
101 103
102 /* Note: task my have been preempted in between! Take this into 104 /* Note: task my have been preempted in between! Take this into