|
在看raid10代码的时候,对r10bio_s这个结构struct r10bio_s {
atomic_t remaining;
sector_t sector;
int sectors;
unsigned long state;
mddev_t *mddev;
struct bio *master_bio;
int read_slot;
struct list_head retry_list;
/*
* if the IO is in WRITE direction, then multiple bios are used,
* one for each copy.
* When resyncing we also use one for each copy.
* When reconstructing, we use 2 bios, one for read, one for write.
* We choose the number when they are allocated.
*/
struct {
struct bio *bio;
sector_t addr;
int devnum;
} devs[0];
};
中的成员devs[0]的作用不是很理解,有哪位大虾能给我指点一下。 |
|