multipath.h 670 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _MULTIPATH_H
  2. #define _MULTIPATH_H
  3. struct multipath_info {
  4. mdk_rdev_t *rdev;
  5. };
  6. struct multipath_private_data {
  7. mddev_t *mddev;
  8. struct multipath_info *multipaths;
  9. int raid_disks;
  10. spinlock_t device_lock;
  11. struct list_head retry_list;
  12. mempool_t *pool;
  13. };
  14. typedef struct multipath_private_data multipath_conf_t;
  15. /*
  16. * this is our 'private' 'collective' MULTIPATH buffer head.
  17. * it contains information about what kind of IO operations were started
  18. * for this MULTIPATH operation, and about their status:
  19. */
  20. struct multipath_bh {
  21. mddev_t *mddev;
  22. struct bio *master_bio;
  23. struct bio bio;
  24. int path;
  25. struct list_head retry_list;
  26. };
  27. #endif