cvs commit: src/sys/kern src/sys/sys

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 24 14:54:50 PDT 2004


dillon      2004/08/24 14:53:41 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_sfbuf.c uipc_syscalls.c 
    sys/sys              sfbuf.h 
  Log:
  Fix a SFBUF memory leak in sendfile().  We were not properly tracking
  references which would lead to SFBUFs not getting freed when two or more
  sendfile()'s are operating on the same file at the same time (e.g. parallel
  ftp downloads of the same file).
  
  Get rid of the sf_buf->aux1 and aux2 hacks for sendfile.
  
  Add a sysctl to allow the number of free SFBUFs to be monitored.
  
  Revision  Changes    Path
  1.11      +6 -1      src/sys/kern/kern_sfbuf.c
  1.41      +28 -17    src/sys/kern/uipc_syscalls.c
  1.6       +0 -2      src/sys/sys/sfbuf.h


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_sfbuf.c.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_syscalls.c.diff?r1=1.40&r2=1.41&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/sfbuf.h.diff?r1=1.5&r2=1.6&f=u





More information about the Commits mailing list