summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumio.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/dev/vinum/vinumio.c
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip
FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Diffstat (limited to 'sys/dev/vinum/vinumio.c')
-rw-r--r--sys/dev/vinum/vinumio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c
index 564d21c..f329137 100644
--- a/sys/dev/vinum/vinumio.c
+++ b/sys/dev/vinum/vinumio.c
@@ -49,7 +49,7 @@ static int drivecmp(const void *va, const void *vb);
* Return an error number
*/
int
-open_drive(struct drive *drive, struct proc *p, int verbose)
+open_drive(struct drive *drive, struct thread *td, int verbose)
{
int devmajor; /* major devs for disk device */
int devminor; /* minor devs for disk device */
@@ -216,7 +216,7 @@ init_drive(struct drive *drive, int verbose)
log(LOG_ERR, "vinum: Can't open drive without drive name\n");
return EINVAL;
}
- drive->lasterror = open_drive(drive, curproc, verbose); /* open the drive */
+ drive->lasterror = open_drive(drive, curthread, verbose); /* open the drive */
if (drive->lasterror)
return drive->lasterror;
@@ -224,7 +224,7 @@ init_drive(struct drive *drive, int verbose)
DIOCGPART,
(caddr_t) & drive->partinfo,
FREAD,
- curproc);
+ curthread);
if (drive->lasterror) {
if (verbose)
log(LOG_WARNING,
@@ -669,7 +669,7 @@ daemon_save_config(void)
DIOCWLABEL,
(caddr_t) & wlabel_on,
FWRITE,
- curproc);
+ curthread);
if (error == 0)
error = write_drive(drive, (char *) vhdr, VINUMHEADERLEN, VINUM_LABEL_OFFSET);
if (error == 0)
@@ -682,7 +682,7 @@ daemon_save_config(void)
DIOCWLABEL,
(caddr_t) & wlabel_on,
FWRITE,
- curproc);
+ curthread);
unlockdrive(drive);
if (error) {
log(LOG_ERR,
OpenPOWER on IntegriCloud