Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265717

Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN

From Laurent Vivier <lvivier@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN
Date 2015-11-09 15:30 +0100
Message-ID <qsVCj-7yE-19@gated-at.bofh.it> (permalink)
References <qsV9g-77p-5@gated-at.bofh.it> <qsV9g-77p-3@gated-at.bofh.it> <qsViW-7qm-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 09/11/2015 15:04, Hannes Reinecke wrote:
> On 11/09/2015 02:53 PM, Laurent Vivier wrote:
>> QEMU allows until 32 LUNs.
>>
>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>> ---
>>  drivers/scsi/ibmvscsi/ibmvscsi.c | 9 ++++++++-
>>  drivers/scsi/ibmvscsi/ibmvscsi.h | 1 +
>>  2 files changed, 9 insertions(+), 1 deletion(-)
>>
> Nothing to do with QEMU; this is a driver limitation.
> Please fixup the description.

Yes, you're right, and I think I didn't define correctly the maximum
value, I use 31 instead of 32 as explained in include/scsi/scsi_host.h:

        /*
         * These three parameters can be used to allow for wide scsi,
         * and for host adapters that support multiple busses
         * The last 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;

Laurent
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN Laurent Vivier <lvivier@redhat.com> - 2015-11-09 15:00 +0100
  Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN Hannes Reinecke <hare@suse.de> - 2015-11-09 15:10 +0100
    Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN Laurent Vivier <lvivier@redhat.com> - 2015-11-09 15:30 +0100

csiph-web