patch-2.4.20 linux-2.4.20/drivers/md/md.c
Next file: linux-2.4.20/drivers/md/raid1.c
Previous file: linux-2.4.20/drivers/md/lvm.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Nov 28 15:53:13 2002
- Orig file:
linux-2.4.19/drivers/md/md.c
- Orig date:
Fri Aug 2 17:39:44 2002
diff -urN linux-2.4.19/drivers/md/md.c linux-2.4.20/drivers/md/md.c
@@ -724,9 +724,9 @@
* Make sure nobody else is using this mddev
* (careful, we rely on the global kernel lock here)
*/
- while (md_atomic_read(&mddev->resync_sem.count) != 1)
+ while (sem_getcount(&mddev->resync_sem) != 1)
schedule();
- while (md_atomic_read(&mddev->recovery_sem.count) != 1)
+ while (sem_getcount(&mddev->recovery_sem) != 1)
schedule();
del_mddev_mapping(mddev, MKDEV(MD_MAJOR, mdidx(mddev)));
@@ -3219,7 +3219,7 @@
if (mddev->curr_resync) {
sz += status_resync (page+sz, mddev);
} else {
- if (md_atomic_read(&mddev->resync_sem.count) != 1)
+ if (sem_getcount(&mddev->resync_sem) != 1)
sz += sprintf(page + sz, " resync=DELAYED");
}
sz += sprintf(page + sz, "\n");
@@ -3712,7 +3712,7 @@
* Searches all registered partitions for autorun RAID arrays
* at boot time.
*/
-static int detected_devices[128];
+static kdev_t detected_devices[128];
static int dev_cnt;
void md_autodetect_dev(kdev_t dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)