DragonFly commits List (threaded) for 2004-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern src/sys/sys
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]