From owner-cvs-all@FreeBSD.ORG Tue Aug 22 11:04:02 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 2536D16A4DE; Tue, 22 Aug 2006 11:04:02 +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 7AD7043D58; Tue, 22 Aug 2006 11:04:01 +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 k7MB417c036150; Tue, 22 Aug 2006 11:04:01 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7MB41IG036149; Tue, 22 Aug 2006 11:04:01 GMT (envelope-from kib) Message-Id: <200608221104.k7MB41IG036149@repoman.freebsd.org> From: Konstantin Belousov Date: Tue, 22 Aug 2006 11:04:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/compat/linprocfs linprocfs.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, 22 Aug 2006 11:04:02 -0000 kib 2006-08-22 11:04:01 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/compat/linprocfs linprocfs.c Log: MFC rev. 1.97: Lock the vnode around the call to VOP_GETATTR. Move the locked code and vn_fullpath (that call malloc(..., M_WAITOK)) from under the vm object lock, since sleep is not allowed while holding the mutex. Being there, wrap VOP_GETATTR call with conditional Giant aquire. Currently this is (almost) noop because pseudofs is Giant-locked. Approved by: pjd (mentor) Revision Changes Path 1.89.2.5 +16 -5 src/sys/compat/linprocfs/linprocfs.c