[Devel] [PATCH RHEL8 COMMIT] ploop: Revert e2b93c8c4bd2 "dm: Introduce dm_request_set_error()"

Konstantin Khorenko khorenko at virtuozzo.com
Mon May 24 13:00:39 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 ab4828be98b89e78672f428e9c3bceba1b538ef1
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon May 24 13:00:39 2021 +0300

    ploop: Revert e2b93c8c4bd2 "dm: Introduce dm_request_set_error()"
    
    Now it is unused.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-map.c | 1 -
 drivers/md/dm-rq.c        | 8 --------
 2 files changed, 9 deletions(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index f8c3b0caa160..c7e6de166cb3 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -36,7 +36,6 @@
  * become handled in ploop_map() as before.
  */
 
-extern void dm_request_set_error(struct request *rq, blk_status_t error);
 static void handle_cleanup(struct ploop *ploop, struct pio *pio);
 
 #define DM_MSG_PREFIX "ploop"
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index f5cdcc3aec52..22cb572ad33c 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -285,14 +285,6 @@ void dm_complete_request(struct request *rq, blk_status_t error)
 }
 EXPORT_SYMBOL_GPL(dm_complete_request);
 
-void dm_request_set_error(struct request *rq, blk_status_t error)
-{
-	struct dm_rq_target_io *tio = tio_from_request(rq);
-
-	tio->error = error;
-}
-EXPORT_SYMBOL_GPL(dm_request_set_error);
-
 /*
  * Complete the not-mapped clone and the original request with the error status
  * through softirq context.


More information about the Devel mailing list