Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753306AbbG3RYe (ORCPT ); Thu, 30 Jul 2015 13:24:34 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:38311 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbbG3RYc (ORCPT ); Thu, 30 Jul 2015 13:24:32 -0400 To: Tomas Winkler Cc: James Bottomley , Christoph Hellwig , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [scsi 6/7 RESEND] scsi_debug: fix REPORT LUNS Well Known LU From: "Martin K. Petersen" Organization: Oracle Corporation References: <1438091666-18113-1-git-send-email-tomas.winkler@intel.com> <1438091666-18113-6-git-send-email-tomas.winkler@intel.com> Date: Thu, 30 Jul 2015 13:24:17 -0400 In-Reply-To: <1438091666-18113-6-git-send-email-tomas.winkler@intel.com> (Tomas Winkler's message of "Tue, 28 Jul 2015 16:54:25 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 669 Lines: 17 >>>>> "Tomas" == Tomas Winkler writes: Tomas> The use case to report 'REPORT LUNS WLUN' described in scsi_debug Tomas> documentation didn't work because: scsi_scan_host_selected() Tomas> checks for: lun < shost->max_lun Tomas> To fix this we set: max_lun = SCSI_W_LUN_REPORT_LUNS + 1; Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- 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/