Skip to content

Commit 34edf9e

Browse files
author
Mike Snitzer
committed
dm vdo thread-utils: return VDO_SUCCESS on vdo_create_thread success
Update all callers to check for VDO_SUCCESS. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
1 parent 6c43cf2 commit 34edf9e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/md/dm-vdo/indexer/funnel-requestqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int uds_make_request_queue(const char *queue_name,
221221

222222
result = vdo_create_thread(request_queue_worker, queue, queue_name,
223223
&queue->thread);
224-
if (result != UDS_SUCCESS) {
224+
if (result != VDO_SUCCESS) {
225225
uds_request_queue_finish(queue);
226226
return result;
227227
}

drivers/md/dm-vdo/indexer/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static int make_chapter_writer(struct uds_index *index,
798798
writer->open_chapter_index->memory_size);
799799

800800
result = vdo_create_thread(close_chapters, writer, "writer", &writer->thread);
801-
if (result != UDS_SUCCESS) {
801+
if (result != VDO_SUCCESS) {
802802
free_chapter_writer(writer);
803803
return result;
804804
}

drivers/md/dm-vdo/indexer/volume.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ int uds_make_volume(const struct uds_configuration *config, struct index_layout
16341634
for (i = 0; i < config->read_threads; i++) {
16351635
result = vdo_create_thread(read_thread_function, (void *) volume,
16361636
"reader", &volume->reader_threads[i]);
1637-
if (result != UDS_SUCCESS) {
1637+
if (result != VDO_SUCCESS) {
16381638
uds_free_volume(volume);
16391639
return result;
16401640
}

drivers/md/dm-vdo/thread-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int vdo_create_thread(void (*thread_function)(void *), void *thread_data,
119119
}
120120

121121
*new_thread = thread;
122-
return UDS_SUCCESS;
122+
return VDO_SUCCESS;
123123
}
124124

125125
void vdo_join_threads(struct thread *thread)

0 commit comments

Comments
 (0)