public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ewan Milne <emilne@redhat.com>
To: Hannes Reinecke <hare@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>,
	linux-scsi@vger.kernel.org,
	James Bottomley <jbottomley@parallels.com>
Subject: Re: [PATCHv2 0/5] Support 64-bit LUNs
Date: Wed, 28 May 2014 16:30:11 -0400	[thread overview]
Message-ID: <1401309011.3813.212.camel@localhost.localdomain> (raw)
In-Reply-To: <1400583791-123120-1-git-send-email-hare@suse.de>

On Tue, 2014-05-20 at 13:03 +0200, Hannes Reinecke wrote:
> Hi all,
> 
> this patchset updates the SCSI stack to support full 64-bit LUNs.
> The first patch is a simple fix; the next patch updates
> the sequential scan logic to be compliant with SPC.
> The third patch addresses a firmware issue with earlier
> qla2xxx HBAs.
> The last two patches update the SCSI stack and all drivers
> to use 64-bit LUNs where appropriate.
> 
> Two drivers have issues with 64bit LUNs:
> - The qla2xxx driver uses a 32-bit LUN value for TMFs.
>   But as the driver uses a max_lun value from 0xFFFF
>   we should be safe for the time being.
> - The zfcp driver uses a 32-bit LUN for debug records; the
>   record format would need to be updated to cope with
>   64-bit LUNs. But again, this driver uses 0xFFFFFFFF
>   for max_lun, so it doesn't do any harm.
> 
> The other changes have been pretty straightforward.
> 
...

So, the patches look like they will work fine...  I think we
should make sure the comments/documentation match the code, though.

For example:
  - Remove this reference in Documentation/scsi/tmscsim.txt:

  "The default for LUN Check depends on CONFIG_SCSI_MULTI_LUN."

  - include/scsi/scsi_host.h comment needs adjusting due to
    fields moved in struct Scsi_Host:

        /*                                                                                                                                                                                                         
         * These three parameters can be used to allow for wide
scsi,                                                                                                                                              
         * and for host adapters that support multiple
busses                                                                                                                                                      
         * The first two should be set to 1 more than the actual max
id                                                                                                                                            
         * or lun (e.g. 8 for SCSI parallel
systems).                                                                                                                                                              
         */
        unsigned int max_channel;
        unsigned int max_id;
        u64 max_lun;

  - int_to_scsilun() and scsilun_to_int() no longer take/return an int.
    Yes, the names are exported and that is a pain but it seems to me
    that this is just asking for an inadvertent truncation of the value.
    Also, the following comment is no longer true:

 *     Note: the scsilun_to_int() routine does not truly handle
all                                                                                                                                                
 *     8bytes of the lun value. This functions restores only as
much                                                                                                                                               
 *     as was set by the routine.          

So, is ibmvfc the only driver that actually supports a LUN value that is
>32 bits?  Or do we have other drivers that are ready to use this?

Regardless, I think we should move forward with these changes.
My concerns could easily be addressed with a subsequent patch.

Reviewed-by: Ewan D. Milne <emilne@redhat.com>






                                         



      parent reply	other threads:[~2014-05-28 20:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 11:03 [PATCHv2 0/5] Support 64-bit LUNs Hannes Reinecke
2014-05-20 11:03 ` [PATCH 1/5] scsi: Remove CONFIG_SCSI_MULTI_LUN Hannes Reinecke
2014-05-22  9:07   ` Christoph Hellwig
2014-05-20 11:03 ` [PATCH 2/5] scsi_scan: Restrict sequential scan to 256 LUNs Hannes Reinecke
2014-05-22  9:08   ` Christoph Hellwig
2014-05-20 11:03 ` [PATCH 3/5] qla2xxx: Restrict max_lun to 16-bit for older HBAs Hannes Reinecke
2014-05-20 13:32   ` Chad Dupuis
2014-05-22  9:09   ` Christoph Hellwig
2014-05-20 11:03 ` [PATCH 4/5] scsi: use 64-bit LUNs Hannes Reinecke
2014-05-22  9:10   ` Christoph Hellwig
2014-05-20 11:03 ` [PATCH 5/5] scsi: use 64-bit value for 'max_luns' Hannes Reinecke
2014-05-22  9:10   ` Christoph Hellwig
2014-05-28 10:56 ` [PATCHv2 0/5] Support 64-bit LUNs Christoph Hellwig
2014-05-29  8:39   ` James Bottomley
2014-05-28 20:30 ` Ewan Milne [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=1401309011.3813.212.camel@localhost.localdomain \
    --to=emilne@redhat.com \
    --cc=hare@suse.de \
    --cc=hch@infradead.org \
    --cc=jbottomley@parallels.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