From: Patrick Mansfield <patmans@us.ibm.com>
To: Douglas Gilbert <dougg@torque.net>, James.Bottomley@steeleye.com
Cc: Matthew Wilcox <willy@debian.org>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] sg driver against lk 2.6.6
Date: Fri, 4 Jun 2004 08:21:07 -0700 [thread overview]
Message-ID: <20040604082107.A20637@beaverton.ibm.com> (raw)
In-Reply-To: <40A6D00D.7070306@torque.net>; from dougg@torque.net on Sun, May 16, 2004 at 12:21:01PM +1000
James -
Is this patch in your queue?
I tried it out, and it worked fine for me with up to 16k of scsi_debug
devices.
-- Patrick Mansfield
On Sun, May 16, 2004 at 12:21:01PM +1000, Douglas Gilbert wrote:
> subject was: 2.6.6-rc3 ia64 smp_call_function() called with
> interrupts disabled
>
> Douglas Gilbert wrote:
> > Matthew Wilcox wrote:
> <snip>
> >>
> >> Does anybody like this patch? It survived booting on my test box which
> >> only has one scsi device. More testing welcomed.
> >
> >
> > Sorry, I missed this thread. The change looks good and survived
> > about one hour of scsi_debug bashing (on i386). I also checked
> > it against the previous version.
> >
> > Attached is my version with only a superficial change to 2
> > printk()s plus:
> > - bump version number
> > - introduce MODULE_VERSION
> > - increase over allocation of sg_dev_arr from 6 to 32
>
> Here are some further refinements to this patch with help
> from Pat Mansfield:
> - replace vmalloc() with kmalloc(,GFP_KERNEL)
> - bump max sg devices from 8192 to 32768
>
> Tested to 16k devices (and 8k devices on a box with 512MB
> ram), Patch is against lk 2.6.6 (or 2.6.6-bk1).
>
> Doug Gilbert
>
> --- linux/drivers/scsi/sg.c 2004-05-10 23:08:46.000000000 +1000
> +++ linux/drivers/scsi/sg.c266mw3 2004-05-16 11:55:07.000000000 +1000
> @@ -7,7 +7,7 @@
> * Original driver (sg.c):
> * Copyright (C) 1992 Lawrence Foard
> * Version 2 and 3 extensions to driver:
> - * Copyright (C) 1998 - 2002 Douglas Gilbert
> + * Copyright (C) 1998 - 2004 Douglas Gilbert
> *
> * Modified 19-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
> *
> @@ -17,27 +17,18 @@
> * any later version.
> *
> */
> -#include <linux/config.h>
> -static int sg_version_num = 30530; /* 2 digits for each component */
> +
> +static int sg_version_num = 30531; /* 2 digits for each component */
> +#define SG_VERSION_STR "3.5.31"
> +
> /*
> * D. P. Gilbert (dgilbert@interlog.com, dougg@triode.net.au), notes:
> * - scsi logging is available via SCSI_LOG_TIMEOUT macros. First
> * the kernel/module needs to be built with CONFIG_SCSI_LOGGING
> * (otherwise the macros compile to empty statements).
> - * Then before running the program to be debugged enter:
> - * # echo "scsi log timeout 7" > /proc/scsi/scsi
> - * This will send copious output to the console and the log which
> - * is usually /var/log/messages. To turn off debugging enter:
> - * # echo "scsi log timeout 0" > /proc/scsi/scsi
> - * The 'timeout' token was chosen because it is relatively unused.
> - * The token 'hlcomplete' should be used but that triggers too
> - * much output from the sd device driver. To dump the current
> - * state of the SCSI mid level data structures enter:
> - * # echo "scsi dump 1" > /proc/scsi/scsi
> - * To dump the state of sg's data structures use:
> - * # cat /proc/scsi/sg/debug
> *
> */
> +#include <linux/config.h>
> #include <linux/module.h>
>
> #include <linux/fs.h>
> @@ -51,7 +42,6 @@
> #include <linux/fcntl.h>
> #include <linux/init.h>
> #include <linux/poll.h>
> -#include <linux/vmalloc.h>
> #include <linux/smp_lock.h>
> #include <linux/moduleparam.h>
> #include <linux/devfs_fs_kernel.h>
> @@ -69,7 +59,7 @@
>
> #ifdef CONFIG_SCSI_PROC_FS
> #include <linux/proc_fs.h>
> -static char *sg_version_str = "3.5.30 [20040124]";
> +static char *sg_version_date = "20040516";
next prev parent reply other threads:[~2004-06-04 15:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-03 4:45 Fw: 2.6.6-rc3 ia64 smp_call_function() called with interrupts disabled Andrew Morton
2004-05-03 12:29 ` Matthew Wilcox
2004-05-03 20:35 ` Matthew Wilcox
2004-05-04 9:41 ` Christoph Hellwig
2004-05-14 20:00 ` Patrick Mansfield
2004-05-13 11:56 ` Douglas Gilbert
2004-05-13 14:43 ` Patrick Mansfield
2004-05-16 2:21 ` [PATCH] sg driver against lk 2.6.6 Douglas Gilbert
2004-06-04 15:21 ` Patrick Mansfield [this message]
2004-06-04 15:28 ` James Bottomley
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=20040604082107.A20637@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=willy@debian.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