summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2006-09-06 15:11:20 +0000
committermp <mp@FreeBSD.org>2006-09-06 15:11:20 +0000
commitf2b00303747b659d7f01f44204c9fb9cfefb33cd (patch)
treec0aa175566fa9493cbce11bc2dac1d6acc12c50a /sys/kern/vfs_aio.c
parenta11da36d0ee152d916d45a7767e1985111fab1dc (diff)
downloadFreeBSD-src-f2b00303747b659d7f01f44204c9fb9cfefb33cd.zip
FreeBSD-src-f2b00303747b659d7f01f44204c9fb9cfefb33cd.tar.gz
Remove call to fdfree() for the AIO daemons to prevent kernel panics
with linprocfs. This call is not needed since file descriptor sharing was removed in v1.125. Reviewed by: alc, davidxu, ambrisko MFC after: 3 days
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 2f8de18..2b22788 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -977,12 +977,6 @@ aio_daemon(void *_id)
aiop->aiothread = td;
aiop->aiothreadflags = 0;
- /*
- * Get rid of our current filedescriptors. AIOD's don't need any
- * filedescriptors, except as temporarily inherited from the client.
- */
- fdfree(td);
-
/* The daemon resides in its own pgrp. */
setsid(td, NULL);
OpenPOWER on IntegriCloud