Re: [PATCH 00/13] st: remove scsi_execute_async usage (the second half)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 17 Dec 2008, FUJITA Tomonori wrote:

> On Tue, 16 Dec 2008 00:24:27 +0200 (EET)
> Kai Makisara <Kai.Makisara@xxxxxxxxxxx> wrote:
> 
> > On Thu, 11 Dec 2008, FUJITA Tomonori wrote:
> > 
> > > This patchset is the second half of the patchset to remove
> > > scsi_execute_async in st driver. IOW, this converts st driver to use
> > > the block layer functions.
> > > 
...
> > I have looked at this patch set and run some tests. The patches make 
> > st_do_scsi() do everything it used to do before your patch sets. So, I 
> > could not resist making a patch that obsoletes st_scsi_kern_execute() from 
> > your first patch set :-) The patch is at the end of this message.
> 
> I have to admit that I thought about the same thing. :)
> 
> I prefer symmetric APIs (e.g. st_do_scsi always needs st_request or
> st_allocate/release_request are used in st_do_scsi) but yeah, I agree
> that your patch makes st look much prettier.
> 
I have learned to like having only one function for submitting SCSI 
commands from the driver. It has sometimes made debugging easier.

> 
> > The simple tests pass without problems. Unfortunately, the same does not 
> > apply to tests with bigger blocks. I wrote some data to tape and read it 
> > with dd. Whenever the block size exceeded 1 MB, I got data corruption just 
> > after the 1 MB limit.
> 
...
> Can you replace the first and second patches in the patchset with the
> following patch (that is, scsi-misc and this patch + #3-13 patches in
> the patchset)?
> 

I did this and have done both the basic tests and tests with big block 
sizes. No problems and data corruption seen so far. However, one thing 
puzzles me: today trying block size above 6144 kB returns EBUSY whereas 
yesterday I could use 16000 kB (although with data corruption but this 
should be fixed by your new patch that increments the offset between 
bios)?

I will do some more tests tomorrow but your code looks really good.

Thanks,
Kai
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux