Commit 46a707cc authored by Mike Snitzer's avatar Mike Snitzer

dm vdo io-submitter: rename to vdo_submit_vio and submit_data_vio

Rename process_vio_io() to vdo_submit_vio(), and process_data_vio_io() to
submit_data_vio().
Reviewed-by: default avatarSusan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMatthew Sakai <msakai@redhat.com>
parent d58d3c86
...@@ -1205,7 +1205,7 @@ static void start_verifying(struct hash_lock *lock, struct data_vio *agent) ...@@ -1205,7 +1205,7 @@ static void start_verifying(struct hash_lock *lock, struct data_vio *agent)
return; return;
} }
set_data_vio_bio_zone_callback(agent, process_vio_io); set_data_vio_bio_zone_callback(agent, vdo_submit_vio);
vdo_launch_completion_with_priority(&vio->completion, BIO_Q_VERIFY_PRIORITY); vdo_launch_completion_with_priority(&vio->completion, BIO_Q_VERIFY_PRIORITY);
} }
......
...@@ -116,10 +116,10 @@ static void send_bio_to_device(struct vio *vio, struct bio *bio) ...@@ -116,10 +116,10 @@ static void send_bio_to_device(struct vio *vio, struct bio *bio)
} }
/** /**
* process_vio_io() - Submits a vio's bio to the underlying block device. May block if the device * vdo_submit_vio() - Submits a vio's bio to the underlying block device. May block if the device
* is busy. This callback should be used by vios which did not attempt to merge. * is busy. This callback should be used by vios which did not attempt to merge.
*/ */
void process_vio_io(struct vdo_completion *completion) void vdo_submit_vio(struct vdo_completion *completion)
{ {
struct vio *vio = as_vio(completion); struct vio *vio = as_vio(completion);
...@@ -156,12 +156,12 @@ static struct bio *get_bio_list(struct vio *vio) ...@@ -156,12 +156,12 @@ static struct bio *get_bio_list(struct vio *vio)
} }
/** /**
* process_data_vio_io() - Submit a data_vio's bio to the storage below along with any bios that * submit_data_vio() - Submit a data_vio's bio to the storage below along with
* have been merged with it. * any bios that have been merged with it.
* *
* Context: This call may block and so should only be called from a bio thread. * Context: This call may block and so should only be called from a bio thread.
*/ */
static void process_data_vio_io(struct vdo_completion *completion) static void submit_data_vio(struct vdo_completion *completion)
{ {
struct bio *bio, *next; struct bio *bio, *next;
struct vio *vio = as_vio(completion); struct vio *vio = as_vio(completion);
...@@ -316,7 +316,7 @@ void vdo_submit_data_vio(struct data_vio *data_vio) ...@@ -316,7 +316,7 @@ void vdo_submit_data_vio(struct data_vio *data_vio)
if (try_bio_map_merge(&data_vio->vio)) if (try_bio_map_merge(&data_vio->vio))
return; return;
launch_data_vio_bio_zone_callback(data_vio, process_data_vio_io); launch_data_vio_bio_zone_callback(data_vio, submit_data_vio);
} }
/** /**
...@@ -356,7 +356,7 @@ void __submit_metadata_vio(struct vio *vio, physical_block_number_t physical, ...@@ -356,7 +356,7 @@ void __submit_metadata_vio(struct vio *vio, physical_block_number_t physical,
return; return;
} }
vdo_set_completion_callback(completion, process_vio_io, vdo_set_completion_callback(completion, vdo_submit_vio,
get_vio_bio_zone_thread_id(vio)); get_vio_bio_zone_thread_id(vio));
vdo_launch_completion_with_priority(completion, get_metadata_priority(vio)); vdo_launch_completion_with_priority(completion, get_metadata_priority(vio));
} }
......
...@@ -20,7 +20,7 @@ void vdo_cleanup_io_submitter(struct io_submitter *io_submitter); ...@@ -20,7 +20,7 @@ void vdo_cleanup_io_submitter(struct io_submitter *io_submitter);
void vdo_free_io_submitter(struct io_submitter *io_submitter); void vdo_free_io_submitter(struct io_submitter *io_submitter);
void process_vio_io(struct vdo_completion *completion); void vdo_submit_vio(struct vdo_completion *completion);
void vdo_submit_data_vio(struct data_vio *data_vio); void vdo_submit_data_vio(struct data_vio *data_vio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment