Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753781AbbEMHWK (ORCPT ); Wed, 13 May 2015 03:22:10 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57460 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbbEMHWI (ORCPT ); Wed, 13 May 2015 03:22:08 -0400 Message-ID: <5552FB9C.7000704@suse.com> Date: Wed, 13 May 2015 09:22:04 +0200 From: Juergen Gross User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Christoph Hellwig , "Nicholas A. Bellinger" CC: target-devel , linux-scsi , linux-kernel , Hannes Reinecke , Sagi Grimberg , Nicholas Bellinger Subject: Re: [PATCH 09/12] target: Convert se_portal_group->tpg_lun_list[] to RCU hlist References: <1431422736-29125-1-git-send-email-nab@daterainc.com> <1431422736-29125-10-git-send-email-nab@daterainc.com> <20150513062458.GA21426@lst.de> In-Reply-To: <20150513062458.GA21426@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 35 On 05/13/2015 08:24 AM, Christoph Hellwig wrote: > >> FIXME: Figure out how sbp-target se_lun usage should work > > The Xen usage also looks really weird. Maybe Juergen can explain what > scsiback_add_translation_entry is trying to do? scsiback_add_translation_entry() makes the connection between a pvSCSI LUN configured by the xen tools in xenstore and a xen-scsiback target. The xen tools specify the pvSCSI LUN via :, with being either the WWN of the target or an alias of that target specified in config_fs. scsiback_add_translation_entry() searches all it's targets until a match is found and links the found tpg to the device specification of the xen guest. > Note that I think both > sbp and xen really should be working on node ACLs. Right now both > of them oly supported autogenerated ACLs, so in practice it doesn't > matter, but keeping the data structure use clean is a goal on it's own. I'd be fine with this, but I think I'll need some hints how to achieve this. I guess I have to specify .fabric_make_nodeacl and .fabric_drop_nodeacl like e.g. done in drivers/vhost/scsi.c ? Is there anything else I have to consider? Juergen -- 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/