]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/md/multipath.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / drivers / md / multipath.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _MULTIPATH_H
3#define _MULTIPATH_H
4
1da177e4 5struct multipath_info {
3cb03002 6 struct md_rdev *rdev;
1da177e4
LT
7};
8
69724e28 9struct mpconf {
fd01b88c 10 struct mddev *mddev;
1da177e4
LT
11 struct multipath_info *multipaths;
12 int raid_disks;
1da177e4
LT
13 spinlock_t device_lock;
14 struct list_head retry_list;
15
16 mempool_t *pool;
17};
18
1da177e4
LT
19/*
20 * this is our 'private' 'collective' MULTIPATH buffer head.
21 * it contains information about what kind of IO operations were started
22 * for this MULTIPATH operation, and about their status:
23 */
24
25struct multipath_bh {
fd01b88c 26 struct mddev *mddev;
1da177e4
LT
27 struct bio *master_bio;
28 struct bio bio;
29 int path;
30 struct list_head retry_list;
31};
32#endif