aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/thread-utils.h
AgeCommit message (Collapse)AuthorFilesLines
2024-03-04dm vdo: remove vdo_perform_onceMatthew Sakai1-3/+1
Remove obsolete function vdo_perform_once. Instead, initialize necessary module state when loading the module. Signed-off-by: Matthew Sakai <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
2024-03-01dm vdo thread-utils: cleanup included headersMike Snitzer1-6/+0
Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-01dm vdo thread-utils: further cleanup of thread functionsMike Snitzer1-5/+4
Change thread function prefix from "uds_" to "vdo_" and fix vdo_join_threads() to return void. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-01dm vdo thread-utils: remove all uds_*_mutex wrappersMike Snitzer1-23/+0
Just use mutex_init, mutex_lock and mutex_unlock. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-01dm vdo thread-utils: push uds_*_cond interface down to indexerMike Snitzer1-28/+0
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 <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-01dm vdo: fold thread-cond-var.c into thread-utilsMike Snitzer1-5/+23
Further cleanup is needed for thread-utils interfaces given many functions should return void or be removed entirely because they amount to obfuscation via wrappers. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-01dm vdo: rename uds-threads.[ch] to thread-utils.[ch]Mike Snitzer1-0/+62
Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>