diff options
author | mjg <mjg@FreeBSD.org> | 2014-08-17 07:00:47 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-08-17 07:00:47 +0000 |
commit | ce59684e4d3b1070bd191b87caba0fd4cd628ce0 (patch) | |
tree | 9e20ff6024a8e162558e3a6a2b2ededd8d56aa5d /sys/kern/kern_exit.c | |
parent | 8fa92f4d0bcf1f1e08a74527ec90f63c26d5b3c4 (diff) | |
download | FreeBSD-src-ce59684e4d3b1070bd191b87caba0fd4cd628ce0.zip FreeBSD-src-ce59684e4d3b1070bd191b87caba0fd4cd628ce0.tar.gz |
MFC r268505, r268507:
Avoid relocking filedesc lock when closing fds during fdp destruction.
Don't call bzero nor fdunused from fdfree for such cases. It would do
unnecessary work and complain that the lock is not taken.
=======
Don't zero fd_nfiles during fdp destruction.
Code trying to take a look has to check fd_refcnt and it is 0 by that time.
This is a follow up to r268505, without this the code would leak memory for
tables bigger than the default.
Diffstat (limited to 'sys/kern/kern_exit.c')
0 files changed, 0 insertions, 0 deletions