public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: Aron Zeh <ARZEH@de.ibm.com>
Cc: Luben Tuikov <luben@splentec.com>,
	linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDD reentrancy
Date: Mon, 26 Aug 2002 09:11:16 -0500	[thread overview]
Message-ID: <200208261411.g7QEBGS30369@localhost.localdomain> (raw)
In-Reply-To: Message from "Aron Zeh" <ARZEH@de.ibm.com> of "Mon, 26 Aug 2002 10:02:47 +0200." <OF80DCCDBC.5B147AD9-ONC1256C21.002BB3EE@de.ibm.com>

ARZEH@de.ibm.com said:
> To me all of the proposed changes look good. The one above I'd be
> interested in particularly. It would help sorting out a lot of woes we
> had with writing a fibre-channel HBA driver. For fibre-channel LUNs
> and port IDs (WWPN) are 64-bit and depending on configuration, high
> values can be (and in our case are) common. 

Actually, I'd like to see us moving towards adopting the capabilities of 
driverfs for this.

PUN is to all intents and purposes now an abstraction in the FC realm.  LUNs 
too, as long as they retain the grouping abstraction with PUNs.  The mid layer 
really doesn't need to know what these are (there are a few pieces of code 
that populate the LUN field for SCSI-1 devices that would need rework).  All 
the mid layer really needs is the Scsi_Device structure that describes an 
individual LUN (and some knowledge of LUN and PUN grouping for reset action 
prediction).  It doesn't need to know or care about the current PUN and LUN 
numbers.

If FC drivers move straight to using driverfs, you can populate the driverfs 
names with whatever is meaningful to you for PUN (WWN, portid etch) and LUN 
and thus avoid this problem (and also the mapping code most have to take these 
to and from the PUN/LUN numbers).  Since driverfs is a tree, the PUN/LUN 
division is done in a directory (and could, theoretically be done on more than 
just a two level split).

James



  reply	other threads:[~2002-08-26 14:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26  8:02 [RFC]: 64 bit LUN/Tags, dummy device in host_queue, host_lock <-> LLDD reentrancy Aron Zeh
2002-08-26 14:11 ` James Bottomley [this message]
2002-08-26 17:17 ` Patrick Mansfield
2002-08-26 20:48   ` Luben Tuikov
  -- strict thread matches above, loose matches on Subject: below --
2002-08-26 17:01 Aron Zeh
2002-08-26 17:15 ` James Bottomley
2002-08-26 16:29 Aron Zeh
2002-08-26 16:48 ` James Bottomley
2002-08-26 17:27   ` Mike Anderson
2002-08-26 19:00     ` James Bottomley
2002-08-26 20:57       ` Mike Anderson
2002-08-26 21:10         ` James Bottomley
2002-08-26 22:38           ` Mike Anderson
2002-08-26 22:56             ` Patrick Mansfield
2002-08-26 23:10             ` Doug Ledford
2002-08-28 14:38             ` James Bottomley
2002-08-26 21:15         ` Mike Anderson
2002-08-23 20:27 Luben Tuikov
2002-08-26 16:16 ` Patrick Mansfield

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=200208261411.g7QEBGS30369@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=ARZEH@de.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=luben@splentec.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