public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] allow the HBA to reserve target and device private areas
Date: Wed, 25 May 2005 07:17:17 -0500	[thread overview]
Message-ID: <1117023437.5071.2.camel@mulgrave> (raw)
In-Reply-To: <20050525071353.GA13141@infradead.org>

On Wed, 2005-05-25 at 08:13 +0100, Christoph Hellwig wrote:
> Do we really need separate functions for this?  It would be so much nicer
> to just have target_priv_size and device_priv_size members in the
> foo_function_template.  Yes, it would mean having this in all different
> transport templates, but in general having this as compile-time initializer
> seems a lot nicer.

Well, they're not functions, they're inlines.  You at least have to have
an accessor function because the reserved area occurs after the
transport attributes and is aligned on the pointer size.

However, my first implementation was per transport class.  You don't
actually need the x_private_offset at all because you know the size of
the transport attributes.  I didn't like it because of all the
duplication, but I'm willing to go back to it if there's strong feeling
either way.

James



      reply	other threads:[~2005-05-25 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24 21:57 [PATCH] allow the HBA to reserve target and device private areas James Bottomley
2005-05-25  7:13 ` Christoph Hellwig
2005-05-25 12:17   ` James Bottomley [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=1117023437.5071.2.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=hch@infradead.org \
    --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