summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-07-13 08:23:05 +0000
committerjulian <julian@FreeBSD.org>1998-07-13 08:23:05 +0000
commit1dc298263b8472c42f06ae8d53d88b88d443c895 (patch)
treef7b039cefef35b7038646d2a611116206a1c3f50 /sys/dev/vn
parent1805fa7aa872b21ea42eaf5c8226a0739bc9f86f (diff)
downloadFreeBSD-src-1dc298263b8472c42f06ae8d53d88b88d443c895.zip
FreeBSD-src-1dc298263b8472c42f06ae8d53d88b88d443c895.tar.gz
SLICE probing becomes asynchronous. It can now be triggered by
interupt level events. This needs a lot of cleanup, but has been working here for a month or two.. originally needed for CAM integration but that hasn't happenned yet. The probing state machines for each handler should be replaced by a more generic state-service. It's still quite messy in there..
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 160b57e..8a586d2 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -38,7 +38,7 @@
* from: Utah Hdr: vn.c 1.13 94/04/02
*
* from: @(#)vn.c 8.6 (Berkeley) 4/1/94
- * $Id: vn.c,v 1.64 1998/07/04 22:30:14 julian Exp $
+ * $Id: vn.c,v 1.65 1998/07/11 07:45:22 bde Exp $
*/
/*
@@ -729,9 +729,7 @@ vnioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
* We have a media to read/write.
* Try identify it.
*/
- if ((tp = slice_probeall(vn->slice)) != NULL) {
- (*tp->constructor)(vn->slice);
- }
+ slice_start_probe(vn->slice); /* this happens asynchronously */
#else
IFOPT(vn, VN_LABELS) {
/*
@@ -921,7 +919,6 @@ vn_drvinit(void *unused)
vn,
&vn->limit,
&vn->slice,
- NULL,
namebuf);
/* Allow full probing */
vn->slice->probeinfo.typespecific = NULL;
OpenPOWER on IntegriCloud