summaryrefslogtreecommitdiffstats
path: root/core/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/lock.c')
-rw-r--r--core/lock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/lock.c b/core/lock.c
index 916a0241..b5e3323f 100644
--- a/core/lock.c
+++ b/core/lock.c
@@ -93,6 +93,9 @@ bool try_lock(struct lock *l)
{
struct cpu_thread *cpu = this_cpu();
+ if (bust_locks)
+ return true;
+
if (__try_lock(cpu, l)) {
if (l->in_con_path)
cpu->con_suspend++;
OpenPOWER on IntegriCloud