Date: Fri, 13 Mar 1998 13:22:16 +1100 From: Bruce Evans <bde@zeta.org.au> To: bugs@FreeBSD.ORG Cc: dyson@FreeBSD.ORG Subject: sleep holding a simple lock Message-ID: <199803130222.NAA32629@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
/* * Destroy the copy in the VM cache, too. */ simple_lock(&vp->v_interlock); object = vp->v_object; if (object != NULL) { if (flags & V_SAVEMETA) vm_object_page_remove(object, 0, object->size, (flags & V_SAVE) ? TRUE : FALSE); else vm_object_page_remove(object, 0, 0, (flags & V_SAVE) ? TRUE : FALSE); } simple_unlock(&vp->v_interlock); The above code in vfs_subr.c sleeps holding a simple lock if vm_object_page_remove() sleeps. There is obviously no way for vm_object_page_remove() to release the lock. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803130222.NAA32629>