Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2001 14:47:58 -0800 (PST)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_aio.c src/sys/sys aio.h
Message-ID:  <200103102247.f2AMlwJ85080@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2001/03/10 14:47:58 PST

  Modified files:
    sys/kern             vfs_aio.c 
    sys/sys              aio.h 
  Log:
  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
  
  Revision  Changes    Path
  1.97      +27 -8     src/sys/kern/vfs_aio.c
  1.25      +2 -1      src/sys/sys/aio.h


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103102247.f2AMlwJ85080>