* Re: Fwd: Re: Getting FS access events
[not found] <1ete23o.p2cfoe1jnm0e0M%smurf@noris.de>
@ 2001-05-14 6:35 ` Matthias Urlichs
0 siblings, 0 replies; only message in thread
From: Matthias Urlichs @ 2001-05-14 6:35 UTC (permalink / raw)
To: linux-kernel
Richard Gooch <rgooch@ras.ucalgary.ca>:
> >
> OK, provided the prefetch will queue up a large number of requests
> before starting the I/O. If there was a way of controlling when the
> I/O actually starts (say by having a START flag), that would be ideal,
> I think.
>
The START flag is equivalent to the first actual read, whereupon the
elevator code will do the Right Thing.
> That opens up a nasty race: if the dentry is released before the
> pointer is harvested, you get a bogus pointer.
>
You simply increase the reference count of every dentry you visit, and
free it when the log is read.
> How's that? It won't matter if read(2) synchronises, because I'll be
> issuing the requests in device bnum order.
>
Of course it does, because the kernel needs to wait for the next read()
system call from your application, which it can only do after the first
one completes, which adds another delay which will slow you down,
especially with high-latency I/O protocols.
--
Matthias Urlichs | noris network AG | http://smurf.noris.de/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-14 6:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1ete23o.p2cfoe1jnm0e0M%smurf@noris.de>
2001-05-14 6:35 ` Fwd: Re: Getting FS access events Matthias Urlichs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox