From owner-cvs-all@FreeBSD.ORG Tue Aug 1 16:27:16 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EB3716A4DE; Tue, 1 Aug 2006 16:27:16 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F33943D45; Tue, 1 Aug 2006 16:27:15 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k71GRF81006559; Tue, 1 Aug 2006 16:27:15 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k71GRFrm006558; Tue, 1 Aug 2006 16:27:15 GMT (envelope-from jhb) Message-Id: <200608011627.k71GRFrm006558@repoman.freebsd.org> From: John Baldwin Date: Tue, 1 Aug 2006 16:27:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/nfsserver nfs.h nfs_srvcache.c nfs_srvsubs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2006 16:27:16 -0000 jhb 2006-08-01 16:27:15 UTC FreeBSD src repository Modified files: sys/nfsserver nfs.h nfs_srvcache.c nfs_srvsubs.c Log: - Add a new function nfsrv_destroycache() to tear down the server request cache when unloading the nfsserver module. This fixes a memory leak and a stale pointer. - Use callout_drain() rather than callout_stop() when unloading the nfsserver module. MFC after: 3 days Revision Changes Path 1.80 +1 -0 src/sys/nfsserver/nfs.h 1.43 +14 -2 src/sys/nfsserver/nfs_srvcache.c 1.143 +2 -1 src/sys/nfsserver/nfs_srvsubs.c