summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/system.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2001-03-10 22:47:57 +0000
committeralc <alc@FreeBSD.org>2001-03-10 22:47:57 +0000
commitd25198ddf60b0b6a8d44e75417de128e29382130 (patch)
tree09bc7d7119aa29db59690f0236e0d21a77c6c7bb /usr.sbin/sysinstall/system.c
parenta8d215e3c1112edf88fab0b035dc71f12a2f11d8 (diff)
downloadFreeBSD-src-d25198ddf60b0b6a8d44e75417de128e29382130.zip
FreeBSD-src-d25198ddf60b0b6a8d44e75417de128e29382130.tar.gz
When aio_read/write() is used on a raw device, physical buffers are
used for up to "vfs.aio.max_buf_aio" of the requests. If a request size is MAXPHYS, but the request base isn't page aligned, vmapbuf() will map the end of the user space buffer into the start of the kva allocated for the next physical buffer. Don't use a physical buffer in this case. (This change addresses problem report 25617.) When an aio_read/write() on a raw device has completed, timeout() is used to schedule a signal to the process. Thus, the reporting is delayed up to 10 ms (assuming hz is 100). The process might have terminated in the meantime, causing a trap 12 when attempting to deliver the signal. Thus, the timeout must be cancelled when removing the job. aio jobs in state JOBST_JOBQGLOBAL should be removed from the kaio_jobqueue list during process rundown. During process rundown, some aio jobs might move from one list to a different list that has already been "emptied", causing the rundown to be incomplete. Retry the rundown. A call to BUF_KERNPROC() is needed after obtaining a physical buffer to disassociate the lock from the running process since it can return to userland without releasing that lock. PR: 25617 Submitted by: tegge
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud