| .. | .. |
|---|
| 17 | 17 | struct mapped_device; |
|---|
| 18 | 18 | |
|---|
| 19 | 19 | /* |
|---|
| 20 | | - * One of these is allocated per request. |
|---|
| 21 | | - */ |
|---|
| 22 | | -struct dm_rq_target_io { |
|---|
| 23 | | - struct mapped_device *md; |
|---|
| 24 | | - struct dm_target *ti; |
|---|
| 25 | | - struct request *orig, *clone; |
|---|
| 26 | | - struct kthread_work work; |
|---|
| 27 | | - blk_status_t error; |
|---|
| 28 | | - union map_info info; |
|---|
| 29 | | - struct dm_stats_aux stats_aux; |
|---|
| 30 | | - unsigned long duration_jiffies; |
|---|
| 31 | | - unsigned n_sectors; |
|---|
| 32 | | - unsigned completed; |
|---|
| 33 | | -}; |
|---|
| 34 | | - |
|---|
| 35 | | -/* |
|---|
| 36 | 20 | * For request-based dm - the bio clones we allocate are embedded in these |
|---|
| 37 | 21 | * structs. |
|---|
| 38 | 22 | * |
|---|
| .. | .. |
|---|
| 46 | 30 | struct bio clone; |
|---|
| 47 | 31 | }; |
|---|
| 48 | 32 | |
|---|
| 49 | | -bool dm_use_blk_mq_default(void); |
|---|
| 50 | | -bool dm_use_blk_mq(struct mapped_device *md); |
|---|
| 51 | | - |
|---|
| 52 | | -int dm_old_init_request_queue(struct mapped_device *md, struct dm_table *t); |
|---|
| 53 | 33 | int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t); |
|---|
| 54 | 34 | void dm_mq_cleanup_mapped_device(struct mapped_device *md); |
|---|
| 55 | 35 | |
|---|