From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752607AbXCaJ1E (ORCPT ); Sat, 31 Mar 2007 05:27:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752549AbXCaJ1E (ORCPT ); Sat, 31 Mar 2007 05:27:04 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:51130 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752540AbXCaJ1B (ORCPT ); Sat, 31 Mar 2007 05:27:01 -0400 Date: Sat, 31 Mar 2007 10:26:44 +0100 From: Christoph Hellwig To: Ed Lin Cc: linux-scsi , linux-kernel , "james.Bottomley" , jeff , promise_linux Subject: Re: [PATCH 1/4] [SCSI]stex: fix id mapping issue Message-ID: <20070331092644.GA25989@infradead.org> Mail-Followup-To: Christoph Hellwig , Ed Lin , linux-scsi , linux-kernel , "james.Bottomley" , jeff , promise_linux References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 30, 2007 at 03:21:33PM -0700, Ed Lin wrote: > + if (hba->cardtype == st_shasta) { > req->lun = lun; > req->target = id; > + } else if (hba->cardtype == st_yosemite){ > + req->lun = id * ST_MAX_LUN_PER_TARGET + lun; > + req->target = 0; > + } else { > + /* st_vsc and st_vsc1 */ > + req->lun = 0; > + req->target = id * ST_MAX_LUN_PER_TARGET + lun; I don't get why you can't export id as targer and lun as lun for the !st_shasta types. Could you explain in detail what the problem with that approach would be?