/* Note: raid10_info.rdev can be set to NULL asynchronously by *raid10_remove_disk. *Therearethreesafewaystoaccessraid10_info.rdev. *1/whenholdingmddev->reconfig_mutex *2/whenresync/recovery/reshapeisknowntobehappening-i.e.incode *thatiscalledaspartofperformingresync/recovery/reshape. *3/whileholdingrcu_read_lock(),usercu_dereferencetogetthepointer *andifitisnon-NULL,incrementrdev->nr_pendingbeforedroppingthe *RCUlock. *When.rdevissettoNULL,thenr_pendingcountcheckedagainandifithas *beenincremented,thepointerisputbackin.rdev.
*/
/* geometry */ struct geom { int raid_disks; int near_copies; /* number of copies laid out
* raid0 style */ int far_copies; /* number of copies laid out *atlargestridesacrossdrives
*/ int far_offset; /* far_copies are offset by 1 *stripeinsteadofmany
*/
sector_t stride; /* distance between far copies. *Thisissize/far_copiesunless *far_offset,inwhichcaseitis *1stripe.
*/ int far_set_size; /* The number of devices in a set, *wherea'set'aredevicesthat *containfar/offsetcopiesof *eachother.
*/ int chunk_shift; /* shift from chunks to sectors */
sector_t chunk_mask;
} prev, geo; int copies; /* near_copies * far_copies. *mustbe<=raid_disks
*/
struct list_head retry_list; /* A separate list of r1bio which just need raid_end_bio_io called. *Thismustn'thappenforwriteswhichhadanyerrorsifthesuperblock *needstobewritten.
*/ struct list_head bio_end_io_list;
/* queue pending writes and submit them on unplug */ struct bio_list pending_bio_list;
seqlock_t resync_lock;
atomic_t nr_pending; int nr_waiting; int nr_queued; int barrier; int array_freeze_pending;
sector_t next_resync; int fullsync; /* set to 1 if a full sync is needed, *(freshdeviceadded). *Clearedwhenasynccompletes.
*/ int have_replacement; /* There is at least one *replacementdevice.
*/
wait_queue_head_t wait_barrier;
struct r10bio {
atomic_t remaining; /* 'have we finished' count, *usedfromIRQhandlers
*/
sector_t sector; /* virtual sector number */ int sectors; unsignedlong state; struct mddev *mddev; /* *originalbiogoingto/dev/mdx
*/ struct bio *master_bio; /* *iftheIOisinREADdirection,thenthisiswhereweread
*/ int read_slot;
struct list_head retry_list; /* *iftheIOisinWRITEdirection,thenmultiplebiosareused, *oneforeachcopy. *Whenresyncingwealsouseoneforeachcopy. *Whenreconstructing,weuse2bios,oneforread,oneforwrite. *Wechoosethenumberwhentheyareallocated. *Wesometimesneedanextrabiotowritetothereplacement.
*/ struct r10dev { struct bio *bio; union { struct bio *repl_bio; /* used for resync and
* writes */ struct md_rdev *rdev; /* used for reads
* (read_slot >= 0) */
};
sector_t addr; int devnum;
} devs[];
};
/* bits for r10bio.state */ enum r10bio_state {
R10BIO_Uptodate,
R10BIO_IsSync,
R10BIO_IsRecover,
R10BIO_IsReshape, /* Set ReadError on bios that experience a read error *sothatraid10dknowswhattodowiththem.
*/
R10BIO_ReadError, /* If a write for this request means we can clear some *known-bad-blockrecords,wesetthisflag.
*/
R10BIO_MadeGood,
R10BIO_WriteError, /* During a reshape we might be performing IO on the *'previous'partofthearray,inwhichcasethis *flagisset
*/
R10BIO_Previous, /* failfast devices did receive failfast requests. */
R10BIO_FailFast,
R10BIO_Discard,
}; #endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.