Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _MULTIPATH_H |
| 3 | #define _MULTIPATH_H |
| 4 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | struct multipath_info { |
NeilBrown | 3cb0300 | 2011-10-11 16:45:26 +1100 | [diff] [blame] | 6 | struct md_rdev *rdev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | }; |
| 8 | |
NeilBrown | 69724e2 | 2011-10-11 16:48:57 +1100 | [diff] [blame] | 9 | struct mpconf { |
NeilBrown | fd01b88 | 2011-10-11 16:47:53 +1100 | [diff] [blame] | 10 | struct mddev *mddev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | struct multipath_info *multipaths; |
| 12 | int raid_disks; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | spinlock_t device_lock; |
| 14 | struct list_head retry_list; |
| 15 | |
| 16 | mempool_t *pool; |
| 17 | }; |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | * this is our 'private' 'collective' MULTIPATH buffer head. |
| 21 | * it contains information about what kind of IO operations were started |
| 22 | * for this MULTIPATH operation, and about their status: |
| 23 | */ |
| 24 | |
| 25 | struct multipath_bh { |
NeilBrown | fd01b88 | 2011-10-11 16:47:53 +1100 | [diff] [blame] | 26 | struct mddev *mddev; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | struct bio *master_bio; |
| 28 | struct bio bio; |
| 29 | int path; |
| 30 | struct list_head retry_list; |
| 31 | }; |
| 32 | #endif |