From: Boaz Harrosh <bharrosh@panasas.com>
To: David Miller <davem@davemloft.net>
Cc: matthew@wil.cx, mroos@linux.ee, linux-scsi@vger.kernel.org,
sparclinux@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>
Subject: Re: qlogicpti driver hangs the machine
Date: Wed, 24 Sep 2008 12:00:22 +0300 [thread overview]
Message-ID: <48DA01A6.1010807@panasas.com> (raw)
In-Reply-To: <20080924.014553.221132445.davem@davemloft.net>
David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Tue, 23 Sep 2008 21:53:02 -0700 (PDT)
>
>> I'm about to stick a qlogicpti card into my ultra2 and try to reproduce
>> this.
>
> Unfortunately, the driver works just fine for me, in fact it's
> checking the root filesystem right now :-)
>
> Meelis, if Matthew isn't able to give you some debugging patches or
> other stuff to try, I'll try to get this fixed when I get back from
> the netfilter workshop in Paris in 2 weeks.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Subject: [PATCH] fix fall out of sg-chaining patch
I've reviewed all patches since Matthew's, and I find one small
problem.
In the load_cmd() there is a compound loop where the first 4 sg's are
set then the rest are set into a memory structure in group of 7 sg's.
Well the second 7-group and on is a bug because sg pointer does not advance.
This is a fall out from Jens's patch.
I'm not sure if this is it but it should be fixed
---
git diff --stat -p
drivers/scsi/qlogicpti.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 4a1cf63..9053508 100644
--- a/drivers/scsi/qlogicpti.c
+++ b/drivers/scsi/qlogicpti.c
@@ -914,6 +914,7 @@ static inline int load_cmd(struct scsi_cmnd *Cmnd, struct Command_Entry *cmd,
ds[i].d_count = sg_dma_len(s);
}
sg_count -= n;
+ sg = s;
}
} else {
cmd->dataseg[0].d_base = 0;
next prev parent reply other threads:[~2008-09-24 9:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 15:06 qlogicpti driver hangs the machine Meelis Roos
2008-09-23 15:59 ` Matthew Wilcox
2008-09-23 21:50 ` Meelis Roos
2008-09-24 4:25 ` David Miller
2008-09-24 4:42 ` Matthew Wilcox
2008-09-24 4:53 ` David Miller
2008-09-24 8:45 ` David Miller
2008-09-24 9:00 ` Boaz Harrosh [this message]
2008-09-24 9:03 ` David Miller
2008-09-24 9:21 ` Meelis Roos
2008-09-24 9:51 ` Meelis Roos
2008-09-28 20:43 ` David Miller
2008-09-29 6:33 ` Jens Axboe
2008-09-29 14:04 ` James Bottomley
2008-09-24 9:21 ` Meelis Roos
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=48DA01A6.1010807@panasas.com \
--to=bharrosh@panasas.com \
--cc=davem@davemloft.net \
--cc=jens.axboe@oracle.com \
--cc=linux-scsi@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=mroos@linux.ee \
--cc=sparclinux@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