~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to drivers/md/multipath.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

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