Date: Tue, 29 May 2001 09:43:53 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.ORG> To: Dima Dorfman <dima@unixfreak.org> Cc: alfred@FreeBSD.ORG, current@FreeBSD.ORG Subject: RE: vm_pager_(de)allocate and vm_mtx Message-ID: <XFMail.010529094353.jhb@FreeBSD.org> In-Reply-To: <20010526022209.CA0203E2F@bazooka.unixfreak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 26-May-01 Dima Dorfman wrote: > Is there a reason vm_pager_allocate acquires vm_mtx itself if > necessary but vm_pager_deallocate does not? At the moment, detaching > an md(4) disk will panic the system with a failed mtx_assert in > vm_pager_deallocate. This can be fixed one of two ways: > vm_pager_deallocate could be made to deal with vm_mtx itself like > vm_pager_allocate does, or md(4) and any other drivers which call > vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it > be? I'll supply patches for either case. > > Thanks, I think I have it the same in the patches on my laptop, but I've not finished those yet, so they aren't safe to be committed but are still a WIP. I would grab the lock around vm_pager_deallocate() for now. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010529094353.jhb>