[PATCH] Use an unsigned type for irq number

2007-10-09 Thread Matthew Wilcox
There are three places in the sym2 driver which print out an interrupt number; all need to be changed to unsigned Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]> diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 74300dd..0f214c0 100644 --- a/drivers/

Re: [GDTH] Remove pre 2.6 ifdefs

2007-10-09 Thread Matthew Wilcox
On Tue, Oct 09, 2007 at 04:43:14PM -0400, Dave Jones wrote: > Signed-off-by: Dave Jones <[EMAIL PROTECTED]> These have already been taken care of; see http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=shortlog;h=gdth -- Intel are signing my paycheques ... these opinions are stil

[GDTH] Remove pre 2.6 ifdefs

2007-10-09 Thread Dave Jones
Signed-off-by: Dave Jones <[EMAIL PROTECTED]> diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 55e4d2d..bfba877 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c @@ -392,12 +392,7 @@ #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6) #include -

Re: [PATCH] Save some bytes in scsi_cmnd by rearranging members

2007-10-09 Thread Matthew Wilcox
On Tue, Oct 09, 2007 at 11:42:43AM +0200, Boaz Harrosh wrote: > Please don't do this patch for now. This is because of the > soon to come scsi_data_buffer patch that rearages most of the members above > and puts them in a substructure. Maybe after the scsi_data_buffer patch you > can > try to do

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread malahal
If we don't need precise timeout, we can have one single timer running at regular intervals, say every second. We also record the exact number of requests that are supposed to be done in a particular interval. This is done by computing the 'interval index' of a request, incrementing it when we send

Re: [PATCH] aic94xx: Use request_firmware() to provide SAS address if the adapter lacks one

2007-10-09 Thread Darrick J. Wong
On Tue, Oct 09, 2007 at 09:41:47AM -0700, Andrew Vasquez wrote: > On Tue, 09 Oct 2007, James Smart wrote: > > > Why do you prefer request_firmware() vs something over sysfs ? > > > > Does environments like the kdump kernel also have access to data needed > > by request_firmware() ? Assuming t

Re: [PATCH] aic94xx: Use request_firmware() to provide SAS address if the adapter lacks one

2007-10-09 Thread Andrew Vasquez
On Tue, 09 Oct 2007, James Smart wrote: > Why do you prefer request_firmware() vs something over sysfs ? > > Does environments like the kdump kernel also have access to data needed > by request_firmware() ? There's already much in the way of automation and infrastructure present in supporting

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread James Bottomley
On Tue, 2007-10-09 at 14:15 +0200, Jens Axboe wrote: > On Tue, Oct 09 2007, Matthew Wilcox wrote: > > On Mon, Oct 08, 2007 at 10:36:10PM -0700, [EMAIL PROTECTED] wrote: > > > Thank you Randy, Jens for your suggestions. I folded the second patch as > > > it is just a clean up. Here is the fixed one

Re: [PATCH 14/17] sym53c8xx: Get rid of IRQ_FMT and IRQ_PRM

2007-10-09 Thread Jeff Garzik
Matthew Wilcox wrote: On Tue, Oct 09, 2007 at 11:35:14AM -0400, Jeff Garzik wrote: Not true. The original code used 'int irq', and the printf format was correct as a result. You changed the code to use 'unsigned int irq' as found in struct pci_dev, without changing IRQ_FMT as needed. If yo

Re: [PATCH 14/17] sym53c8xx: Get rid of IRQ_FMT and IRQ_PRM

2007-10-09 Thread Matthew Wilcox
On Tue, Oct 09, 2007 at 11:35:14AM -0400, Jeff Garzik wrote: > Not true. The original code used 'int irq', and the printf format was > correct as a result. > > You changed the code to use 'unsigned int irq' as found in struct > pci_dev, without changing IRQ_FMT as needed. > > If you wanted to

Re: [PATCH 14/17] sym53c8xx: Get rid of IRQ_FMT and IRQ_PRM

2007-10-09 Thread Jeff Garzik
Matthew Wilcox wrote: On Fri, Oct 05, 2007 at 04:59:47PM -0400, Jeff Garzik wrote: NAK The proper format string is '%u' because irq is unsigned I'll change it to %u in the next revision. However, I respectfully decline your NAK as this was not a regression. Not true. The original code use

Re: [PATCH 11/17] sym53c8xx: Remove tag_ctrl module parameter

2007-10-09 Thread Matthew Wilcox
On Fri, Oct 05, 2007 at 04:56:41PM -0400, Jeff Garzik wrote: > Matthew Wilcox wrote: > >With sysfs making these options tunable at runtime, there's no > >justification for keeping this horrendously complex specification > >string around. > > > >Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]> > >-

Re: [PATCH] aic94xx: Use request_firmware() to provide SAS address if the adapter lacks one

2007-10-09 Thread James Smart
Why do you prefer request_firmware() vs something over sysfs ? Does environments like the kdump kernel also have access to data needed by request_firmware() ? -- james s Andrew Vasquez wrote: On Mon, 08 Oct 2007, Darrick J. Wong wrote: On Mon, Oct 08, 2007 at 03:48:32PM -0700, Andrew Vasque

Re: [PATCH 14/17] sym53c8xx: Get rid of IRQ_FMT and IRQ_PRM

2007-10-09 Thread Matthew Wilcox
On Fri, Oct 05, 2007 at 04:59:47PM -0400, Jeff Garzik wrote: > NAK > > The proper format string is '%u' because irq is unsigned I'll change it to %u in the next revision. However, I respectfully decline your NAK as this was not a regression. -- Intel are signing my paycheques ... these opinion

Re: [PATCH 16/17] sym53c8xx: Remove pci_dev pointer from sym_shcb

2007-10-09 Thread Matthew Wilcox
On Fri, Oct 05, 2007 at 05:07:39PM -0400, Jeff Garzik wrote: > Obviously this is a judgement call on your part... but did you at least > consider passing sym_hcb for all cases instead? I did. There's a lot of crap stored in the sym_hcb that needs to move to the sym_data, so Scsi_host is going to

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread malahal
Here is another attempt! Thank you. diff -r 1b51503899a0 block/ll_rw_blk.c --- a/block/ll_rw_blk.c Thu Sep 27 00:25:15 2007 -0700 +++ b/block/ll_rw_blk.c Tue Oct 09 07:00:51 2007 -0700 @@ -181,6 +181,18 @@ void blk_queue_softirq_done(struct reque EXPORT_SYMBOL(blk_queue_softirq_done); +void

Re: [PATCH 04/21] advansys: Fix simultaneous calls to ->queuecommand

2007-10-09 Thread Matthew Wilcox
On Mon, Oct 08, 2007 at 12:07:47PM +0200, Boaz Harrosh wrote: > I see that these patches are before the conversion to scsi data accessors > and !use_sg cleanup that was posted by TOMO: > http://www.spinics.net/lists/linux-scsi/msg19055.html > > Could you please also post that patch rebased to lat

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread Jens Axboe
On Tue, Oct 09 2007, Matthew Wilcox wrote: > On Mon, Oct 08, 2007 at 10:36:10PM -0700, [EMAIL PROTECTED] wrote: > > Thank you Randy, Jens for your suggestions. I folded the second patch as > > it is just a clean up. Here is the fixed one patch version. > > I was thinking about this (in the context

Re: [PATCH] Save some bytes in scsi_cmnd by rearranging members

2007-10-09 Thread Matthew Wilcox
On Tue, Oct 09, 2007 at 11:42:43AM +0200, Boaz Harrosh wrote: > Please don't do this patch for now. This is because of the > soon to come scsi_data_buffer patch that rearages most of the members above > and puts them in a substructure. Maybe after the scsi_data_buffer patch you > can > try to do

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread Matthew Wilcox
On Mon, Oct 08, 2007 at 10:36:10PM -0700, [EMAIL PROTECTED] wrote: > Thank you Randy, Jens for your suggestions. I folded the second patch as > it is just a clean up. Here is the fixed one patch version. I was thinking about this (in the context of shrinking scsi_cmnd -- obviously, things are not

Re: [PATCH] Save some bytes in scsi_cmnd by rearranging members

2007-10-09 Thread Boaz Harrosh
On Tue, Oct 09 2007 at 1:50 +0200, Matthew Wilcox <[EMAIL PROTECTED]> wrote: > Thanks to acme's pahole utility, I found some places where we can save > a lot of bytes in scsi_cmnd, just by rearranging struct elements and > reducing the size of some elements. We go from 272 to 260 bytes on x86 > an

Re: [RFC] [PATCH 1/1] blk request timeout handler patches

2007-10-09 Thread Jens Axboe
On Mon, Oct 08 2007, [EMAIL PROTECTED] wrote: > Thank you Randy, Jens for your suggestions. I folded the second patch as > it is just a clean up. Here is the fixed one patch version. > > Signed-off-by: Mike Christie <[EMAIL PROTECTED]> > Signed-off-by: Malahal Naineni <[EMAIL PROTECTED]> > > Than