From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: Re: [PATCH 0/6] target: Update UA handling Date: Wed, 17 Jun 2015 08:25:32 +0200 Message-ID: <558112DC.2090306@suse.de> References: <1434009689-112909-1-git-send-email-hare@suse.de> <1434521449.7916.187.camel@haakon3.risingtidesystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from cantor2.suse.de ([195.135.220.15]:38137 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbbFQGZe (ORCPT ); Wed, 17 Jun 2015 02:25:34 -0400 In-Reply-To: <1434521449.7916.187.camel@haakon3.risingtidesystems.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Nicholas A. Bellinger" Cc: Nic Bellinger , target-devel@vger.kernel.org, linux-scsi@vger.kernel.org, Christoph Hellwig On 06/17/2015 08:10 AM, Nicholas A. Bellinger wrote: > On Thu, 2015-06-11 at 10:01 +0200, Hannes Reinecke wrote: >> Hi Nic, >> >> lio-target is very minimalistic when it comes to generate UAs; >> primarily they are generated for persistent reservations, but >> generic changes tend to be ignored. >> >> This patchset updates the UA handling and generates UA for internal >> state changes (REPORTED LUNS DATA CHANGED, INQUIRY DATA CHANGED, >> and LUN RESET OCCURRED). >> >> Funnily enough this triggers some issues with the SCSI stack; >> I'll be sending out patches for that, too. >> >> Hannes Reinecke (6): >> target_core_alua: Correct UA handling when switching states >> target: Remove 'ua_nacl' pointer from se_ua structure >> target: use 'se_dev_entry' when allocating UAs >> target: Send UA on ALUA target port group change >> target: Send UA upon LUN RESET tmr completion >> target: Send UA when changing LUN inventory >> >> drivers/target/target_core_alua.c | 56 +++++++++++++++++++++++= ++--------- >> drivers/target/target_core_device.c | 26 +++++++++++++++- >> drivers/target/target_core_pr.c | 31 +++++++++++++++---- >> drivers/target/target_core_transport.c | 29 ++++++++++++++---- >> drivers/target/target_core_ua.c | 24 ++------------- >> drivers/target/target_core_ua.h | 5 ++- >> include/target/target_core_base.h | 1 - >> 7 files changed, 121 insertions(+), 51 deletions(-) >> >=20 > Applied to target-pending/for-next, with the extra incremental patch = for > a common target_ua_alloc_lun() caller. >=20 > Btw, very happy to see REPORTED_LUNS_DATA_HAS_CHANGED support include > for v4.2-rc1 code. 8-) >=20 Yeah; I needed a quick testbed for my ALUA update, and thought that tcm_loop would fit the bill. As it turned out, not quite. Hence the patches. BTW: the main issue I have with current lio-target is that you can only configure it _after_ the target has been enabled. IE if you want to add another ALUA state you have to create another TPG, and set this to the required ALUA state. But you can modify the TPG allegiance only _after_ the LUN has been created and is visible to the host. Which means that the initiator inevitably sees both states, and it's impossible to have the LUN start off with a different than the default ALUA state. (This is especially important if one would want to test the READ CAPACITY support in ALUA standby state). Would you be okay with changing that? Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg GF: F. Imend=C3=B6rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N=C3=BCrnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html