From: Stephen Cameron <smcameron@yahoo.com>
To: linux-kernel@vger.kernel.org, mike.miller@hp.com, akpm@osdl.org
Subject: Re: cciss: bug fix for crash when running hpacucli
Date: Mon, 10 Apr 2006 21:48:45 -0700 (PDT) [thread overview]
Message-ID: <20060411044845.87232.qmail@web33008.mail.mud.yahoo.com> (raw)
Andrew Morton wrote:
> "Mike Miller (OS Dev)" <m...@beardog.cca.cpqcorp.net> wrote:
>
>> This patch fixes a crash when running hpacucli with multiple logical volumes
>> on a cciss controller. We were not properly initializing the disk->queue
>> and causing a fault.
>
>Please confirm that this is safe&appropriate for backporting into 2.6.16.x?
I think it should be ok, so long as those kernels contain
Jens's softirq changes, and I think they do, iirc.
The problem was an ioctl that the hpacucli program uses to
tell the driver to re-query the controller about what logical drives are
configured (after it say, adds or deletes logical drives) didn't bother to set up
the queue in this ioctl with the softirq function as it does in
cciss_init_one (the latter being called at init time).
The business end of the patch is this hunk,
which mimics code in cciss.c:cciss_init_one():
@@ -1249,6 +1296,8 @@ static void cciss_update_drive_info(int
blk_queue_max_sectors(disk->queue, 512);
+ blk_queue_softirq_done(disk->queue, cciss_softirq_done);
+
disk->queue->queuedata = hba[ctlr];
blk_queue_hardsect_size(disk->queue,
The rest of it is just moving functions around to satisfy the compiler
about function prototypes.
Well, maybe that doesn't answer your question if you were wanting
stronger verification, such as actual testing with those kernels.
If the function cciss_init_one contains a call to blk_queue_softirq_done,
but cciss_update_drive_info does not contain such a call, then
it's a safe bet this patch or something very like it is needed.
cciss_update_drive_info needs to do the same thing per new drive as
cciss_init_one does.
-- steve
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2006-04-11 4:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-11 4:48 Stephen Cameron [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-11 15:31 cciss: bug fix for crash when running hpacucli Miller, Mike (OS Dev)
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=20060411044845.87232.qmail@web33008.mail.mud.yahoo.com \
--to=smcameron@yahoo.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.miller@hp.com \
/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