lkml.org 
[lkml]   [2000]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [packet-writing] [release] packet-0.0.2c
On Fri, Sep 08 2000, adam@cfar.umd.edu wrote:
> Incorrect number of segments after building list
> nr_segments is 3
> counted segments is 20
> Flags 0 0
> Segment 0xc59cf920, blocks 4, addr 0x59177ff
[snip]

Try attached patch, I hadn't noticed the segment counts were wrong
because I have implicit recounting.

--
* Jens Axboe <axboe@suse.de>
* SuSE Labs
--- drivers/scsi/scsi_merge.c~ Sat Sep 9 00:20:15 2000
+++ drivers/scsi/scsi_merge.c Sat Sep 9 00:21:49 2000
@@ -818,11 +818,7 @@
/*
* First we need to know how many scatter gather segments are needed.
*/
- if (!sg_count_valid) {
- count = __count_segments(req, use_clustering, dma_host, NULL);
- } else {
- count = req->nr_segments;
- }
+ count = __count_segments(req, use_clustering, dma_host, NULL);

/*
* If the dma pool is nearly empty, then queue a minimal request
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:1.499 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site