summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-08-27 18:04:25 -0700
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-08-27 18:48:46 -0700
commitdb67a3f06e3cbd0ac2196f7373e5e927fc1a866f (patch)
tree78b9452f58a7d73265af8e40aee705728ba022d4
parent2d344a9aa00ede8cfa408626e6fd5540ed2b11fa (diff)
backports: add missing returns on ww_mutex backpotsbackports-20130802
Two returns were missing on the ww_mutex backport, add these. The enhancements are not supported on older kernels so just bail out early. Tested against next-20130802 1 2.6.25 [ OK ] 2 2.6.26 [ OK ] 3 2.6.27 [ OK ] 4 2.6.28 [ OK ] 5 2.6.29 [ OK ] 6 2.6.30 [ OK ] 7 2.6.31 [ OK ] 8 2.6.32 [ OK ] 9 2.6.33 [ OK ] 10 2.6.34 [ OK ] 11 2.6.35 [ OK ] 12 2.6.36 [ OK ] 13 2.6.37 [ OK ] 14 2.6.38 [ OK ] 15 2.6.39 [ OK ] 16 3.0.79 [ OK ] 17 3.1.10 [ OK ] 18 3.10-rc1 [ OK ] 19 3.2.45 [ OK ] 20 3.3.8 [ OK ] 21 3.4.46 [ OK ] 22 3.5.7 [ OK ] 23 3.6.11 [ OK ] 24 3.7.10 [ OK ] 25 3.8.13 [ OK ] 26 3.9.3 [ OK ] real 34m47.935s user 938m15.592s sys 130m11.724s Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r--backport/compat/kernel/ww_mutex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/kernel/ww_mutex.c b/backport/compat/kernel/ww_mutex.c
index 257c2a45..204ac8f7 100644
--- a/backport/compat/kernel/ww_mutex.c
+++ b/backport/compat/kernel/ww_mutex.c
@@ -206,10 +206,12 @@ static void mspin_unlock(struct mspin_node **lock, struct mspin_node *node)
static inline bool owner_running(struct mutex *lock, struct task_struct *owner)
{
+ return false;
}
int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner)
{
+ return 1;
}
static inline int mutex_can_spin_on_owner(struct mutex *lock)