From 88579eba5fdebb2b2c65f3bc9fb1a3a7abbaf12f Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 9 Oct 2018 00:32:28 -0700 Subject: core/lock: Use try_lock_caller() in lock_caller() to capture owner Otherwise we can get reports of core/lock.c owning the lock, which is not helpful when tracking down ownership issues. Signed-off-by: Andrew Jeffery Signed-off-by: Stewart Smith --- core/lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/lock.c b/core/lock.c index e7c60a3..d3f881a 100644 --- a/core/lock.c +++ b/core/lock.c @@ -226,7 +226,7 @@ void lock_caller(struct lock *l, const char *owner) lock_check(l); - if (try_lock(l)) + if (try_lock_caller(l, owner)) return; add_lock_request(l); -- cgit v1.1