diff options
author | Namhyung Kim <namhyung@kernel.org> | 2022-08-11 01:03:46 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-08-19 20:47:51 +0300 |
commit | 501f7f69bca195da266de83eb2c26c30813fba97 (patch) | |
tree | 5ad7c6a8ed7060076e1713c9ad35b2d862906665 /kernel/locking/qrwlock.c | |
parent | 9aeaf5bc4e30ec968ae660b865ed491a28daf500 (diff) | |
download | linux-501f7f69bca195da266de83eb2c26c30813fba97.tar.xz |
locking: Add __lockfunc to slow path functions
So that we can skip the functions in the perf lock contention and other
places like /proc/PID/wchan.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Link: https://lore.kernel.org/r/20220810220346.1919485-1-namhyung@kernel.org
Diffstat (limited to 'kernel/locking/qrwlock.c')
-rw-r--r-- | kernel/locking/qrwlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/qrwlock.c b/kernel/locking/qrwlock.c index 2e1600906c9f..d2ef312a8611 100644 --- a/kernel/locking/qrwlock.c +++ b/kernel/locking/qrwlock.c @@ -18,7 +18,7 @@ * queued_read_lock_slowpath - acquire read lock of a queued rwlock * @lock: Pointer to queued rwlock structure */ -void queued_read_lock_slowpath(struct qrwlock *lock) +void __lockfunc queued_read_lock_slowpath(struct qrwlock *lock) { /* * Readers come here when they cannot get the lock without waiting @@ -63,7 +63,7 @@ EXPORT_SYMBOL(queued_read_lock_slowpath); * queued_write_lock_slowpath - acquire write lock of a queued rwlock * @lock : Pointer to queued rwlock structure */ -void queued_write_lock_slowpath(struct qrwlock *lock) +void __lockfunc queued_write_lock_slowpath(struct qrwlock *lock) { int cnts; |