From owner-cvs-all@FreeBSD.ORG Tue Oct 3 10:47:07 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 C784816A412; Tue, 3 Oct 2006 10:47:07 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3433C43D46; Tue, 3 Oct 2006 10:47:05 +0000 (GMT) (envelope-from kib@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 k93Al5La065367; Tue, 3 Oct 2006 10:47:05 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k93Al5Pk065366; Tue, 3 Oct 2006 10:47:05 GMT (envelope-from kib) Message-Id: <200610031047.k93Al5Pk065366@repoman.freebsd.org> From: Konstantin Belousov Date: Tue, 3 Oct 2006 10:47:04 +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/sys mount.h src/sys/kern vfs_mount.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, 03 Oct 2006 10:47:07 -0000 kib 2006-10-03 10:47:04 UTC FreeBSD src repository Modified files: sys/sys mount.h sys/kern vfs_mount.c Log: Fix the remaining race in the revs. 1.232, 1,233 that could occur during unmount when mp structure is reused while waiting for coveredvp lock. Introduce struct mount generation count, increment it on each reuse and compare the generations before and after obtaining the coveredvp lock. Reviewed by: tegge, pjd Approved by: pjd (mentor) MFC after: 2 weeks Revision Changes Path 1.240 +5 -1 src/sys/kern/vfs_mount.c 1.215 +1 -0 src/sys/sys/mount.h