From: "Matthias Urlichs" <smurf@noris.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Fwd: Re: Getting FS access events
Date: Mon, 14 May 2001 08:35:23 +0200 [thread overview]
Message-ID: <20010514083523.C801@noris.de> (raw)
In-Reply-To: <1ete23o.p2cfoe1jnm0e0M%smurf@noris.de>
In-Reply-To: <1ete23o.p2cfoe1jnm0e0M%smurf@noris.de>; from smurf@noris.de on Mon, May 14, 2001 at 08:26:30AM +0200
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/
parent reply other threads:[~2001-05-14 6:35 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1ete23o.p2cfoe1jnm0e0M%smurf@noris.de>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010514083523.C801@noris.de \
--to=smurf@noris.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox