[Devel] [PATCH RH8 1/3] ploop: Export dm_complete_request()

Kirill Tkhai ktkhai at virtuozzo.com
Fri May 21 13:05:12 MSK 2021


It will be used in dm-ploop driver.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-rq.c |    3 ++-
 drivers/md/dm-rq.h |    2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index c9ae771783ae..f5cdcc3aec52 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -276,13 +276,14 @@ static void dm_softirq_done(struct request *rq)
  * Complete the clone and the original request with the error status
  * through softirq context.
  */
-static void dm_complete_request(struct request *rq, blk_status_t error)
+void dm_complete_request(struct request *rq, blk_status_t error)
 {
 	struct dm_rq_target_io *tio = tio_from_request(rq);
 
 	tio->error = error;
 	blk_mq_complete_request(rq);
 }
+EXPORT_SYMBOL_GPL(dm_complete_request);
 
 void dm_request_set_error(struct request *rq, blk_status_t error)
 {
diff --git a/drivers/md/dm-rq.h b/drivers/md/dm-rq.h
index 1eea0da641db..56156738d1b4 100644
--- a/drivers/md/dm-rq.h
+++ b/drivers/md/dm-rq.h
@@ -44,4 +44,6 @@ ssize_t dm_attr_rq_based_seq_io_merge_deadline_show(struct mapped_device *md, ch
 ssize_t dm_attr_rq_based_seq_io_merge_deadline_store(struct mapped_device *md,
 						     const char *buf, size_t count);
 
+void dm_complete_request(struct request *rq, blk_status_t error);
+
 #endif




More information about the Devel mailing list