mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.60 and current bk oops in file_ra_state_init
Date: Thu, 13 Feb 2003 14:29:58 -0800	[thread overview]
Message-ID: <20030213142958.A16286@beaverton.ibm.com> (raw)
In-Reply-To: <20030213131344.086e154e.akpm@digeo.com>; from akpm@digeo.com on Thu, Feb 13, 2003 at 01:13:44PM -0800

On Thu, Feb 13, 2003 at 01:13:44PM -0800, Andrew Morton wrote:
> Was this test frequently opening and closing device nodes, or does it just
> open them once and hold them?

Opens once only.

> Can you please prepare a testcase which I can use to reproduce this?

I have only been able to reproduce it on the qla2300 running the latest
qla2300 driver. So maybe it is a qla only problem (blah).

As per previous oops reports by wli and Martin, running with the qlogicisp
driver on the isp1020 gives an oops in isp1020_intr_handler :( 

I'm rebooting again.

I was running this program, simultaneously one per drive up to 25, so I
should have only one IO outstanding per disk (added the O_DIRECT):

#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>

int
main (int argc, char **argv)
{
	int	fd;
	int	loop_cnt;
	char	*dev_name;
	int	block_size = 512;
	char	buff[4096], *bufp;
	int	res;


	dev_name = argv[1];
	loop_cnt = atoi(argv[2]);
	fprintf(stderr, "Re-reading device %s with %d iterations\n",
		dev_name, loop_cnt);
	fd = open (dev_name, O_RDONLY | O_DIRECT);
	if (fd == -1) {
		perror("open");
		exit(1);
	}

	/* memset(buff, 'x', block_size); */
	bufp = (char*) ((int)(buff + 4096) & 0xfffff000);
	fprintf(stderr, "bufp is 0x%x; buff is 0x%x\n", bufp, buff);
	while (loop_cnt-- > 0) {
#ifdef NOTNOW
#endif
		res = read(fd, bufp, block_size);
		if (res != block_size) {
			fprintf(stderr, "Read only %d bytes of %d, cnt %d\n",
				res, block_size, loop_cnt);
			exit(1);
		}
		res = lseek(fd, 0, SEEK_SET);
		if (res == -1) {
			perror("lseek");
			exit(1);
		}
	}

	close(fd);
}

-- Patrick Mansfield

      reply	other threads:[~2003-02-13 22:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 20:04 Patrick Mansfield
2003-02-13 21:13 ` Andrew Morton
2003-02-13 22:29   ` Patrick Mansfield [this message]

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=20030213142958.A16286@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=akpm@digeo.com \
    --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

all inboxes | Powered by JetHome®