DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern sys_pipe.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 May 2004 15:48:53 -0700 (PDT)

dillon      2004/05/11 15:48:53 PDT

DragonFly src repository

  Modified files:
    sys/kern             sys_pipe.c 
  Log:
  Fix a bug in sys/pipe.c.  xio_init_ubuf() might not be able to load up the
  requested number of bytes even if the request is limited to XIO_INTERNAL_SIZE
  if the user buffer base is not page-aligned.  XIO will set xio_bytes to the
  actual size of the buffer.
  
  Note that this bug was never exercised due to the 64KB pipe kmem buffer size
  limit, so it could not have been the cause of recent problems.
  
  Use kmem_alloc_nofault() instead of kmem_alloc_pageable() for the kmem
  reservation.  This is more correct but should have no actual effect on
  the system.
  
  Revision  Changes    Path
  1.21      +4 -4      src/sys/kern/sys_pipe.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_pipe.c.diff?r1=1.20&r2=1.21&f=h



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]