diff options
author | Mike Snitzer <snitzer@redhat.com> | 2014-02-28 15:33:43 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-03-27 16:56:24 -0400 |
commit | 9974fa2c6a7d470ca3c201fe7dbac64bf4dd8d2a (patch) | |
tree | 623ceaee0342585c95c0eca67ab3e6c4f03bb9e2 /include/linux/device-mapper.h | |
parent | 17f4ff45b58742e2cb32fce6e406dbdb4b32a1e7 (diff) | |
download | lwn-9974fa2c6a7d470ca3c201fe7dbac64bf4dd8d2a.tar.gz lwn-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 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 5eeeab470cfd..63da56ed9796 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -463,6 +463,11 @@ struct mapped_device *dm_table_get_md(struct dm_table *t); void dm_table_event(struct dm_table *t); /* + * Run the queue for request-based targets. + */ +void dm_table_run_md_queue_async(struct dm_table *t); + +/* * The device must be suspended before calling this method. * Returns the previous table, which the caller must destroy. */ |