All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: Matthew Wilcox <willy@debian.org>
Cc: James Bottomley <James.Bottomley@steeleye.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 17:54:50 -0400	[thread overview]
Message-ID: <409FFA2A.2070402@us.ibm.com> (raw)
In-Reply-To: <20040510213901.GH16118@parcelfarce.linux.theplanet.co.uk>

Matthew Wilcox wrote:
> 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? 

It is a shared structure with the adapter with a little bit of added
driver data at the end of it. I'll roll a patch to clean this up. The
better way to do this is probably to break out the data that needs to be
packed into its own structure.

-Brian

-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center


      reply	other threads:[~2004-05-10 21:54 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
2004-05-10 21:54     ` Brian King [this message]

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=409FFA2A.2070402@us.ibm.com \
    --to=brking@us.ibm.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=willy@debian.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.