dm-table.c (cef6f55a9fb4f6d6f9df0f772aa64cf159997466) dm-table.c (f349b0a3e1f0d184374936f1b2a49352f8a4b1c8)
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 2045 unchanged lines hidden (view full) ---

2054}
2055
2056struct mapped_device *dm_table_get_md(struct dm_table *t)
2057{
2058 return t->md;
2059}
2060EXPORT_SYMBOL(dm_table_get_md);
2061
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm-core.h"

--- 2045 unchanged lines hidden (view full) ---

2054}
2055
2056struct mapped_device *dm_table_get_md(struct dm_table *t)
2057{
2058 return t->md;
2059}
2060EXPORT_SYMBOL(dm_table_get_md);
2061
2062const char *dm_table_device_name(struct dm_table *t)
2063{
2064 return dm_device_name(t->md);
2065}
2066EXPORT_SYMBOL_GPL(dm_table_device_name);
2067
2062void dm_table_run_md_queue_async(struct dm_table *t)
2063{
2064 struct mapped_device *md;
2065 struct request_queue *queue;
2066
2067 if (!dm_table_request_based(t))
2068 return;
2069
2070 md = dm_table_get_md(t);
2071 queue = dm_get_md_queue(md);
2072 if (queue)
2073 blk_mq_run_hw_queues(queue, true);
2074}
2075EXPORT_SYMBOL(dm_table_run_md_queue_async);
2076
2068void dm_table_run_md_queue_async(struct dm_table *t)
2069{
2070 struct mapped_device *md;
2071 struct request_queue *queue;
2072
2073 if (!dm_table_request_based(t))
2074 return;
2075
2076 md = dm_table_get_md(t);
2077 queue = dm_get_md_queue(md);
2078 if (queue)
2079 blk_mq_run_hw_queues(queue, true);
2080}
2081EXPORT_SYMBOL(dm_table_run_md_queue_async);
2082