linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian King <brking@linux.vnet.ibm.com>
To: Michael Reed <mdr@sgi.com>
Cc: James Bottomley <James.Bottomley@suse.de>,
	James Smart <James.Smart@Emulex.Com>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Ed Lin <ed.lin@promise.com>
Subject: Re: [PATCH 1/1] lpfc: lpfc no longer discovers lun 255
Date: Thu, 10 Dec 2009 07:01:40 -0600	[thread overview]
Message-ID: <4B20F134.60400@linux.vnet.ibm.com> (raw)
In-Reply-To: <4B195869.7040504@sgi.com>

Michael Reed wrote:
> 
> James Bottomley wrote:
>> On Fri, 2009-12-04 at 11:55 -0600, Michael Reed wrote:
>>> Yeah.  I'm working on a patch for qla1280.c also.  Probably others
>>> have been hit.  It would have been nice if the patch author had
>>> fixed all the drivers instead of introducing this change and waiting
>>> for people to discover their last lun is now missing.
>> Actually, lets just revert this:
>>
>> commit 71c309995bff5b5e84253931888b6e8163ee1df0
>> Author: Ed Lin <ed.lin@promise.com>
>> Date:   Fri Oct 9 15:23:27 2009 -0700
>>
>>     [SCSI] fix inconsistent usage of max_lun
>>
>> Which is causing all the problems.  Perhaps we need to update the
>> documentation instead?
>>
>> James
> 
> As much as I would whine about it, I think moving to a consistent
> usage of max_lun is a good thing.  There are only about 140 references
> to max_lun in the cscope output so it wouldn't be that difficult
> for people to go through and fix up their drivers.  And, I suspect
> a good portion will not require any change as they already either
> work correctly with sequential lun scan by design or have misinterpreted
> the meaning of max_lun, and thus will continue to work correctly
> with report lun scan with Mr. Lin's patch applied.

The ibmvfc driver was using 0xffffffff to indicate it essentially had no limit
on the number of LUNs. It appears this can no longer be done with the commit
above since max_lun is an unsigned int.

-Brian

-- 
Brian King
Linux on Power Virtualization
IBM Linux Technology Center



  reply	other threads:[~2009-12-10 13:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04 16:04 [PATCH 1/1] lpfc: lpfc no longer discovers lun 255 Michael Reed
2009-12-04 17:41 ` James Smart
2009-12-04 17:55   ` Michael Reed
2009-12-04 17:58     ` James Bottomley
2009-12-04 18:43       ` Michael Reed
2009-12-10 13:01         ` Brian King [this message]
2009-12-10 15:43           ` James Bottomley
2009-12-10 20:03             ` Ed Lin - PTU

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=4B20F134.60400@linux.vnet.ibm.com \
    --to=brking@linux.vnet.ibm.com \
    --cc=James.Bottomley@suse.de \
    --cc=James.Smart@Emulex.Com \
    --cc=ed.lin@promise.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mdr@sgi.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;
as well as URLs for NNTP newsgroup(s).