Date: Thu, 11 Mar 1999 19:09:29 -0800 (PST) From: Julian Elischer <julian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_lock.c kern_subr.c Message-ID: <199903120309.TAA60769@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <dillon@freebsd.org> Reviewed by: Luoqi Chen <luoqi@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903120309.TAA60769>