diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2017-10-29 12:54:42 -0400 |
|---|---|---|
| committer | Mike Snitzer <snitzer@redhat.com> | 2018-05-18 11:04:33 -0400 |
| commit | 4a2ec3f321f83db09da4824025420586c9ef1612 (patch) | |
| tree | 780cded1f34d569e8b2ee512404bc326d00fa23b | |
| parent | 226777b1ab8970f4819de7695f1d704dc4cc8a6b (diff) | |
| download | linux-dm-4a2ec3f321f83db09da4824025420586c9ef1612.tar.gz | |
swait: export the symbols __prepare_to_swait and __finish_swait
Notice: this object is not reachable from any branch.
In order to reduce locking overhead, I use the spinlock in
swait_queue_head to protect not only the wait queue, but also the list of
events. Consequently, I need to use unlocked functions __prepare_to_swait
and __finish_swait. These functions are declared in the file
include/linux/swait.h, but they are not exported, and so they are not
useable from kernel modules.
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Notice: this object is not reachable from any branch.
| -rw-r--r-- | kernel/sched/swait.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/swait.c b/kernel/sched/swait.c index b6fb2c3b3ff73..4e4a6141fa961 100644 --- a/kernel/sched/swait.c +++ b/kernel/sched/swait.c @@ -75,6 +75,7 @@ void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) if (list_empty(&wait->task_list)) list_add(&wait->task_list, &q->task_list); } +EXPORT_SYMBOL(__prepare_to_swait); void prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait, int state) { @@ -104,6 +105,7 @@ void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) if (!list_empty(&wait->task_list)) list_del_init(&wait->task_list); } +EXPORT_SYMBOL(__finish_swait); void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) { |
