From owner-cvs-all Thu Mar 11 19: 9:54 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1DA8E15210; Thu, 11 Mar 1999 19:09:43 -0800 (PST) (envelope-from julian@FreeBSD.org) Received: (from julian@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id TAA60769; Thu, 11 Mar 1999 19:09:29 -0800 (PST) (envelope-from julian@FreeBSD.org) Message-Id: <199903120309.TAA60769@freefall.freebsd.org> From: Julian Elischer Date: Thu, 11 Mar 1999 19:09:29 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_lock.c kern_subr.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk julian 1999/03/11 19:09:29 PST Modified files: sys/kern kern_lock.c kern_subr.c Log: This solves a deadlock that can occur when read()ing into a file-mmap() space. When doing this, it is possible to for another process to attempt to get an exclusive lock on the vnode and deadlock the mmap/read combination when the uiomove() call tries to obtain a second shared lock on the vnode. There is still a potential deadlock situation with write()/mmap(). Submitted by: Matt Dillon Reviewed by: Luoqi Chen Delimmitted by tag PRE_MATT_MMAP_LOCK and POST_MATT_MMAP_LOCK in kern/kern_lock.c kern/kern_subr.c Revision Changes Path 1.24 +24 -3 src/sys/kern/kern_lock.c 1.28 +12 -4 src/sys/kern/kern_subr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message