Subject: Re: kern/24516: mmap not fully functional with smbfs
To: None <>
From: Tim Robbins <>
List: netbsd-bugs
Date: 02/29/2004 10:19:29
This has been fixed in FreeBSD:

The fix is (basically) to delay sending the close SMB to the server
until VOP_INACTIVE - the reference counting that smbfs does in
VOP_OPEN and VOP_CLOSE does not account for mmap()'d regions.
It's kinda hard to service a page fault reading from a file that
has already been closed on the server :-)

Also note that even though I had no real plans to merge it into
FreeBSD RELENG_4, I ended up doing it due to demand. Some of this
patchset might be useful to NetBSD (it includes the mmap fix):