summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-02-28 15:33:43 +0100
committerMike Snitzer <snitzer@redhat.com>2014-03-27 21:56:24 +0100
commit9974fa2c6a7d470ca3c201fe7dbac64bf4dd8d2a (patch)
tree623ceaee0342585c95c0eca67ab3e6c4f03bb9e2 /drivers/md/dm.c
parentdm mpath: do not call pg_init when it is already running (diff)
downloadlinux-9974fa2c6a7d470ca3c201fe7dbac64bf4dd8d2a.tar.xz
linux-9974fa2c6a7d470ca3c201fe7dbac64bf4dd8d2a.zip
dm table: add dm_table_run_md_queue_async
Introduce dm_table_run_md_queue_async() to run the request_queue of the mapped_device associated with a request-based DM table. Also add dm_md_get_queue() wrapper to extract the request_queue from a mapped_device. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 6382213dbd88..455e64916498 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -468,6 +468,11 @@ sector_t dm_get_size(struct mapped_device *md)
return get_capacity(md->disk);
}
+struct request_queue *dm_get_md_queue(struct mapped_device *md)
+{
+ return md->queue;
+}
+
struct dm_stats *dm_get_stats(struct mapped_device *md)
{
return &md->stats;