[Devel] [PATCH RHEL8 COMMIT] ploop: Export dm_complete_request()

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 24 13:00:38 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.31
------>
commit e1bc7f98797cb064d9a7ef8240fa81b1ec9ddfe9
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 24 13:00:38 2021 +0300

    ploop: Export dm_complete_request()
    
    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