Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: James.Smart@Emulex.Com
Cc: James.Bottomley@SteelEye.com, linux-scsi@vger.kernel.org,
	andmike@us.ibm.com
Subject: Re: [PATCH] [Update] suspending I/Os to a device
Date: Sun, 5 Sep 2004 12:17:01 +0100	[thread overview]
Message-ID: <20040905121701.A29446@infradead.org> (raw)
In-Reply-To: <0B1E13B586976742A7599D71A6AC733C02F1A5@xbl3.ma.emulex.com>; from James.Smart@Emulex.Com on Sat, Sep 04, 2004 at 07:15:35PM -0400

> As for the hostdata - I don't see any api violation. Hostdata is whatever context the driver wants when it receives commands for a lun. In a general sense - yes, this is typically a lun structure. However, it doesn't have to be. The only real rule is that it is a valid context for the lun during the duration between slave_alloc & free. In our case, the adapter interface doesn't track luns - it tracks remote nports (aka targets). Thus the context is a more general target structure.

Umm, I didn't mean to imply that there was an API violation.  Of course you
can store per-target data in sdev->hostadata - in fact that's the only
sensible thing to do right now.

But to get lifetime rules for that right you'd have to refcount the object
in there, not just keeep it around until host removal like lpfc (and for
example fusion aswell) do right now.  The best way is to re-use the
refcounting in scsi_target for that instead of duplicating that in every
driver.


  reply	other threads:[~2004-09-05 11:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-04 23:15 [PATCH] [Update] suspending I/Os to a device James.Smart
2004-09-05 11:17 ` Christoph Hellwig [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-04 10:50 James.Smart
2004-09-04 11:03 ` Christoph Hellwig
2004-09-03 20:31 James.Smart
2004-09-03 23:23 ` James Bottomley

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=20040905121701.A29446@infradead.org \
    --to=hch@infradead.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=James.Smart@Emulex.Com \
    --cc=andmike@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