multipath.h 611 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _MULTIPATH_H
  2. #define _MULTIPATH_H
  3. struct multipath_info {
  4. struct md_rdev *rdev;
  5. };
  6. struct mpconf {
  7. struct mddev *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. /*
  15. * this is our 'private' 'collective' MULTIPATH buffer head.
  16. * it contains information about what kind of IO operations were started
  17. * for this MULTIPATH operation, and about their status:
  18. */
  19. struct multipath_bh {
  20. struct mddev *mddev;
  21. struct bio *master_bio;
  22. struct bio bio;
  23. int path;
  24. struct list_head retry_list;
  25. };
  26. #endif