multipath.h 692 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. int working_disks;
  11. spinlock_t device_lock;
  12. struct list_head retry_list;
  13. mempool_t *pool;
  14. };
  15. typedef struct multipath_private_data multipath_conf_t;
  16. /*
  17. * this is our 'private' 'collective' MULTIPATH buffer head.
  18. * it contains information about what kind of IO operations were started
  19. * for this MULTIPATH operation, and about their status:
  20. */
  21. struct multipath_bh {
  22. mddev_t *mddev;
  23. struct bio *master_bio;
  24. struct bio bio;
  25. int path;
  26. struct list_head retry_list;
  27. };
  28. #endif