Thomas Chan wrote: > >>> I may have spotted this problem. >>> Could you try this patch please. >>> >>> Ian >>> >>> autofs-5.0.4 - fix rpc fd leak >>> >>> From: Ian Kent <[email protected]> >>> >>> Recent changes which introduced the ability to handle to cope with >>> IPv6 addresses causes a file descriptor leak in the RPC library. >>> --- >>> >>> lib/rpc_subs.c | 11 ----------- >>> 1 files changed, 0 insertions(+), 11 deletions(-) >>> >>> >>> diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c >>> index d034b29..cafc775 100644 >>> --- a/lib/rpc_subs.c >>> +++ b/lib/rpc_subs.c >>> @@ -253,17 +253,6 @@ static CLIENT *rpc_do_create_client(struct >>> sockaddr *addr, struct conn_info *inf >>> return NULL; >>> } >>> >>> - if (!info->client) { >>> - *fd = open_sock(addr->sa_family, type, proto); >>> - if (*fd < 0) >>> - return NULL; >>> - >>> - if (bind(*fd, laddr, slen) < 0) { >>> - close(*fd); >>> - return NULL; >>> - } >>> - } >>> - >>> switch (info->proto->p_proto) { >>> case IPPROTO_UDP: >>> if (!info->client) { >>> >> >> This looks good so far. After restarting autofs, I don't see the >> increasing open files any more. >> >> Thomas >> > > After a few days of running with this patch, everything looks to still > be functioning as expected. Thanks for the speedy fix!
Thanks, I get onto committing the fix. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
