mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Badari Pulavarty <pbadari@us.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Suparna Bhattacharya <suparna@in.ibm.com>
Subject: Re: use O_DIRECT open file, when read will hang.
Date: Fri, 19 Sep 2003 09:39:18 -0700	[thread overview]
Message-ID: <200309190939.18796.pbadari@us.ibm.com> (raw)
In-Reply-To: <20030918225450.3d6bb72c.akpm@osdl.org>

On Thursday 18 September 2003 10:54 pm, Andrew Morton wrote:
> Hugang <hugang@soulinfo.com> wrote:
> > Hello all:
> >
> > Steps to reproduce:
> >
> > rm -f /tmp/1.log
> > touch /tmp/1.log
> > echo << EOF > /tmp/hang.c
> > #include <sys/types.h>
> > #include <asm/fcntl.h>
> >
> > main()
> > {
> >         int i;
> >         char buf[1025];
> >
> >         i = open("/tmp/1.log", O_RDONLY | 040000, 0);
> >         if ( i != -1) {
> >                 read(i, buf, 1);
> >         }
> >         printf("'%s'", buf);
> > }
> > EOF
> > gcc -o /tmp/hang /tmp/hang.c
> > /tmp/hang
>
> This is due to O_DIRECT-race-fixes.patch forgetting to drop locks
> on error paths all over the place.
>
> I think this patch plugs them all for block-based direct-io, but it needs
> checking.
>
> There's also the little matter of (say) NFS direct-io which doesn't go
> through fs/direct-io.c at all; it will deadlock in a jiffy.
>
> Must say that I am getting very concerned about the general state of the IO
> paths in the -mm kernel.

Andrew,

I am also seeing some kind of regression on raw in 2.6.0-test5-mm2.
Unfortunately, this happens only with huge database benchmarks.
I still haven't narrowed it down.

So I am planning to do following to address your concerns.

1) I am going to do full code review of DIO & RAW code in -mm tree.

2) I want to test RAW & DIO code with various test cases we have.
	- fsx:
		on  RAW, DIO on files, AIO on RAW, AIO on files, AIO-DIO on files

	- rawiobench
		on  RAW, DIO on files, AIO on RAW, AIO on files, AIO-DIO on files

	- database benchmarks:
		on RAW, on files

	- can I do fsx, rawiobench on NFS files to test DIO on NFS ?

	- What else you would like to see ?

Thanks,
Badari


  reply	other threads:[~2003-09-19 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19  4:46 Hugang
2003-09-19  5:54 ` Andrew Morton
2003-09-19 16:39   ` Badari Pulavarty [this message]
2003-09-19 16:57     ` Andrew Morton
2003-09-19 17:38       ` Badari Pulavarty
2003-09-19 22:12       ` Badari Pulavarty
2003-09-19 13:06 ` Richard B. Johnson

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=200309190939.18796.pbadari@us.ibm.com \
    --to=pbadari@us.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suparna@in.ibm.com \
    /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

all inboxes | Powered by JetHome®