@@ -275,7 +275,7 @@ 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);
@@ -283,6 +283,7 @@ static void dm_complete_request(struct request *rq, blk_status_t error)
if (likely(!blk_should_fake_timeout(rq->q)))
blk_mq_complete_request(rq);
}
+EXPORT_SYMBOL(dm_complete_request);
/*
* Complete the not-mapped clone and the original request with the error status
@@ -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
This function is required for dm-qcow2 driver going in next patches. The driver transforms block requests into file operations on underlining file in QCOW2 format (like loop but over QCOW2 instead of RAW file). We need to have a possibility to complete a request after corresponding file operations are finished. Signed-off-by: Kirill Tkhai <kirill.tkhai@openvz.org> --- drivers/md/dm-rq.c | 3 ++- drivers/md/dm-rq.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel