From: Matthew Wilcox <willy@debian.org>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: Brian King <brking@us.ibm.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] IBM Power RAID driver (ipr) 2.0.6
Date: Mon, 10 May 2004 22:39:01 +0100 [thread overview]
Message-ID: <20040510213901.GH16118@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <1084221540.2659.353.camel@mulgrave>
On Mon, May 10, 2004 at 03:38:57PM -0500, James Bottomley wrote:
> On Tue, 2004-05-04 at 12:52, Brian King wrote:
> > Here is the latest version of the LLD for the IBM Power RAID family of
> > adapters. This includes several IBM iSeries and pSeries SCSI adapters.
> > Please apply.
>
> The problem is your use of list_head pointers in packed structures. You
> can't simply pass a pointer to a misaligned structure to a common kernel
> function and expect it to work: the packed attribute is lost doing this
> and what you end up with is a misaligned pointer reference.
It also causes gcc to pessimise references to this structure; often
doing byte-loads instead of larger quantities. Why does this struct
need to be packed?
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
next prev parent reply other threads:[~2004-05-10 21:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 17:52 [PATCH] IBM Power RAID driver (ipr) 2.0.6 Brian King
2004-05-04 17:56 ` Christoph Hellwig
2004-05-04 18:24 ` Brian King
2004-05-10 20:38 ` James Bottomley
2004-05-10 21:39 ` Matthew Wilcox [this message]
2004-05-10 21:54 ` Brian King
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=20040510213901.GH16118@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=James.Bottomley@steeleye.com \
--cc=brking@us.ibm.com \
--cc=linux-scsi@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