extremely tiny race window in raid1
From: Peter T. Breuer <hidden>
Date: 2005-01-11 19:52:22
From: Peter T. Breuer <hidden>
Date: 2005-01-11 19:52:22
From raid1.c in 2.6.8.1:
* inc refcount on their rdev. Record them by setting
* bios[x] to bio
*/
- disks = conf->raid_disks;
spin_lock_irq(&conf->device_lock);
+ disks = conf->raid_disks;
for (i = 0; i < disks; i++) {
if (conf->mirrors[i].rdev &&
!conf->mirrors[i].rdev->faulty) {
(there are plenty of other places where small things like that happen,
and normally I say "shucks, he'll spot it and correct it, and it's no
biggie anyway", but my conscience is getting at me to report at least
some of them).
Peter