Searched refs:read_errors (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/md/
H A Draid10.c1452 * Used by fix_read_error() to decay the per rdev read_errors.
1461 unsigned int read_errors = atomic_read(&rdev->read_errors); local
1478 * if hours_since_last is > the number of bits in read_errors
1480 * overflowing the shift of read_errors by hours_since_last.
1482 if (hours_since_last >= 8 * sizeof(read_errors))
1483 atomic_set(&rdev->read_errors, 0);
1485 atomic_set(&rdev->read_errors, read_errors >> hours_since_last);
1520 atomic_inc(&rdev->read_errors);
[all...]
H A Dmd.h117 atomic_t read_errors; /* number of consecutive read errors that member in struct:mdk_rdev_s
H A Draid5.c1593 if (atomic_read(&conf->disks[i].rdev->read_errors))
1594 atomic_set(&conf->disks[i].rdev->read_errors, 0);
1601 atomic_inc(&rdev->read_errors);
1619 else if (atomic_read(&rdev->read_errors)
H A Dmd.c2760 atomic_set(&rdev->read_errors, 0);

Completed in 114 milliseconds