summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-24 08:32:36 +0000
committerphk <phk@FreeBSD.org>2004-09-24 08:32:36 +0000
commit8d623dca9a9e1f806cbf51d823bdd407059fc800 (patch)
treec32b2acf9d45041e08b1153e04a2000b7a9ba38e /sys/vm/vm_mmap.c
parentc67c50f50e3cd69316e0f460cae9326107b33862 (diff)
downloadFreeBSD-src-8d623dca9a9e1f806cbf51d823bdd407059fc800.zip
FreeBSD-src-8d623dca9a9e1f806cbf51d823bdd407059fc800.tar.gz
XXX mark two places where we do not hold a threadcount on the dev when
frobbing the cdevsw. In both cases we examine only the cdevsw and it is a good question if we weren't better off copying those properties into the cdev in the first place. This question will be revisited.
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index a4a4650..6801bc2 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -1094,6 +1094,7 @@ vm_mmap_vnode(struct thread *td, vm_size_t objsize,
type = OBJT_DEVICE;
handle = vp->v_rdev;
+ /* XXX: lack thredref on device */
if(vp->v_rdev->si_devsw->d_flags & D_MMAP_ANON) {
*maxprotp = VM_PROT_ALL;
*flagsp |= MAP_ANON;
OpenPOWER on IntegriCloud