Skip site navigation (1)Skip section navigation (2)
Date:      14 Apr 1999 07:51:03 -0000
From:      Ville-Pertti Keinonen <will@iki.fi>
To:        thorpej@nas.nasa.gov
Cc:        hackers@freebsd.org
Subject:   Re: read() and pread() syscalls
Message-ID:  <19990414075103.12740.qmail@ns.oeno.com>
In-Reply-To: <199904131616.JAA20900@lestat.nas.nasa.gov> (message from Jason Thorpe on Tue, 13 Apr 1999 09:16:07 -0700)

next in thread | previous in thread | raw e-mail | index | archive | help

>  > I don't have a NetBSD machine around, but it might apply to NetBSD, as
>  > well, unless NetBSD keeps the vnode exclusively locked for the entire
>  > duration of a VOP_READ, even if it blocks.
> 
> There is no need to keep the _vnode_ locked; the file offset is not stored
> in the vnode, but in the struct file that references that vnode.

Of course, but my assumption was that current *BSD code does not make
any explicit attempts to protect f_offset and that it might, in some
cases, be protected as a side-effect of vnode locking.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990414075103.12740.qmail>