diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-02-09 22:06:00 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2024-03-01 17:25:58 +0300 |
commit | 7f2e494ddda6d66214902c31091cc39b30a9b1f6 (patch) | |
tree | 88f9c19e042106c76760fbdfbe4492b29dfef309 /drivers/md/dm-vdo/thread-utils.c | |
parent | 877f36b76485d1e0dab5a9de8a7175c66cc791e3 (diff) | |
download | linux-7f2e494ddda6d66214902c31091cc39b30a9b1f6.tar.xz |
dm vdo thread-utils: push uds_*_cond interface down to indexer
Only used by indexer components. Also return void from
uds_init_cond(), remove uds_destroy_cond(), and fix up
all callers.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Diffstat (limited to 'drivers/md/dm-vdo/thread-utils.c')
-rw-r--r-- | drivers/md/dm-vdo/thread-utils.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/md/dm-vdo/thread-utils.c b/drivers/md/dm-vdo/thread-utils.c index 5d371bfba8ff..30760b1c4d30 100644 --- a/drivers/md/dm-vdo/thread-utils.c +++ b/drivers/md/dm-vdo/thread-utils.c @@ -9,7 +9,6 @@ #include <linux/delay.h> #include <linux/err.h> #include <linux/kthread.h> -#include <linux/sched.h> #include "errors.h" #include "logger.h" @@ -135,14 +134,3 @@ int uds_join_threads(struct thread *thread) uds_free(thread); return UDS_SUCCESS; } - -void uds_wait_cond(struct cond_var *cv, struct mutex *mutex) -{ - DEFINE_WAIT(__wait); - - prepare_to_wait(&cv->wait_queue, &__wait, TASK_IDLE); - uds_unlock_mutex(mutex); - schedule(); - finish_wait(&cv->wait_queue, &__wait); - uds_lock_mutex(mutex); -} |