FreeBSD Bugzilla – Attachment 7432 Details for
Bug 16122
Incorrect SysV SHM segment accounting by async I/O helper procs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.41 KB, created by
Havard Eidnes
on 2000-01-14 12:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Havard Eidnes
Created:
2000-01-14 12:10:00 UTC
Size:
1.41 KB
patch
obsolete
>--- /sys/kern/vfs_aio.c.dist Sun Aug 29 18:26:12 1999 >+++ /sys/kern/vfs_aio.c Thu Jan 13 14:24:10 2000 >@@ -618,44 +618,49 @@ > * We manage to create only one VM space for all AIOD processes. > * The VM space for the first AIOD created becomes the shared VM > * space for all of them. We add an additional reference count, > * even for the first AIOD, so the address space does not go away, > * and we continue to use that original VM space even if the first > * AIOD exits. > */ > if ((aiovm = aiovmspace) == NULL) { > aiovmspace = myvm; > myvm->vm_refcnt++; > /* > * Remove userland cruft from address space. > */ > if (myvm->vm_shm) > shmexit(mycp); > pmap_remove_pages(&myvm->vm_pmap, 0, USRSTACK); > vm_map_remove(&myvm->vm_map, 0, USRSTACK); > myvm->vm_tsize = 0; > myvm->vm_dsize = 0; > myvm->vm_ssize = 0; > } else { > aiovm->vm_refcnt++; >+ /* >+ * Remove userland cruft from address space. >+ */ >+ if (myvm->vm_shm) >+ shmexit(mycp); > mycp->p_vmspace = aiovm; > pmap_activate(mycp); > vmspace_free(myvm); > myvm = aiovm; > } > > if (mycp->p_textvp) { > vrele(mycp->p_textvp); > mycp->p_textvp = NULL; > } > > /* > * Allocate and ready the aio control info. There is one > * aiop structure per daemon. > */ > aiop = zalloc(aiop_zone); > aiop->aioproc = mycp; > aiop->aioprocflags |= AIOP_FREE; > TAILQ_INIT(&aiop->jobtorun); > > /* > * Place thread (lightweight process) onto the AIO free thread list
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16122
: 7432