From owner-cvs-src-old@FreeBSD.ORG Mon Dec 29 13:26:12 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA64010657C1 for ; Mon, 29 Dec 2008 13:26:12 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8E6A08FC0C for ; Mon, 29 Dec 2008 13:26:12 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBTDQC3h074973 for ; Mon, 29 Dec 2008 13:26:12 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBTDQCHJ074972 for cvs-src-old@freebsd.org; Mon, 29 Dec 2008 13:26:12 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200812291326.mBTDQCHJ074972@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Mon, 29 Dec 2008 13:25:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/pseudofs pseudofs_vncache.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2008 13:26:12 -0000 kib 2008-12-29 13:25:58 UTC FreeBSD src repository Modified files: sys/fs/pseudofs pseudofs_vncache.c Log: SVN rev 186565 on 2008-12-29 13:25:58Z by kib When the insmntque() in the pfs_vncache_alloc() fails, vop_reclaim calls pfs_vncache_free() that removes pvd from the list, while it is not yet put on the list. Prevent the invalid removal from the list by clearing pvd_next and pvd_prev for the newly allocated pvd, and only move pfs_vncache list head when the pvd was at the head. Suggested and approved by: des MFC after: 2 weeks Revision Changes Path 1.44 +2 -1 src/sys/fs/pseudofs/pseudofs_vncache.c