summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-07-11 21:01:48 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-08-22 17:10:02 -0400
commit4d46fce22260dc98f2cf60119c654acd9a53afd2 (patch)
tree49fec9cfb7f24846fbec4c9421354b0dd9155ae9
parentf5aeaecf5446ac0b2956235141de838e5bceca99 (diff)
locking/osq: Export osq_(lock|unlock)bcachefs-v4.19-backport
These are used by bcachefs's six locks. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Waiman Long <longman@redhat.com> Cc: Boqun Feng <boqun.feng@gmail.com>
-rw-r--r--kernel/locking/osq_lock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/locking/osq_lock.c b/kernel/locking/osq_lock.c
index 6ef600aa0f47..dfa71347b087 100644
--- a/kernel/locking/osq_lock.c
+++ b/kernel/locking/osq_lock.c
@@ -202,6 +202,7 @@ unqueue:
return false;
}
+EXPORT_SYMBOL_GPL(osq_lock);
void osq_unlock(struct optimistic_spin_queue *lock)
{
@@ -229,3 +230,4 @@ void osq_unlock(struct optimistic_spin_queue *lock)
if (next)
WRITE_ONCE(next->locked, 1);
}
+EXPORT_SYMBOL_GPL(osq_unlock);