Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _MULTIPATH_H
0003 #define _MULTIPATH_H
0004 
0005 struct multipath_info {
0006     struct md_rdev  *rdev;
0007 };
0008 
0009 struct mpconf {
0010     struct mddev            *mddev;
0011     struct multipath_info   *multipaths;
0012     int         raid_disks;
0013     spinlock_t      device_lock;
0014     struct list_head    retry_list;
0015 
0016     mempool_t       pool;
0017 };
0018 
0019 /*
0020  * this is our 'private' 'collective' MULTIPATH buffer head.
0021  * it contains information about what kind of IO operations were started
0022  * for this MULTIPATH operation, and about their status:
0023  */
0024 
0025 struct multipath_bh {
0026     struct mddev            *mddev;
0027     struct bio      *master_bio;
0028     struct bio      bio;
0029     int         path;
0030     struct list_head    retry_list;
0031 };
0032 #endif