Blame view

drivers/md/multipath.h 611 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _MULTIPATH_H
  #define _MULTIPATH_H
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
  struct multipath_info {
3cb030020   NeilBrown   md: removing type...
4
  	struct md_rdev	*rdev;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5
  };
69724e28c   NeilBrown   md/multipath: typ...
6
  struct mpconf {
fd01b88c7   NeilBrown   md: remove typede...
7
  	struct mddev			*mddev;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
8
9
  	struct multipath_info	*multipaths;
  	int			raid_disks;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
10
11
12
13
14
  	spinlock_t		device_lock;
  	struct list_head	retry_list;
  
  	mempool_t		*pool;
  };
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
  /*
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
16
17
18
19
20
21
   * this is our 'private' 'collective' MULTIPATH buffer head.
   * it contains information about what kind of IO operations were started
   * for this MULTIPATH operation, and about their status:
   */
  
  struct multipath_bh {
fd01b88c7   NeilBrown   md: remove typede...
22
  	struct mddev			*mddev;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
23
24
25
26
27
28
  	struct bio		*master_bio;
  	struct bio		bio;
  	int			path;
  	struct list_head	retry_list;
  };
  #endif