From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758423Ab1EZTPc (ORCPT ); Thu, 26 May 2011 15:15:32 -0400 Received: from mail.linux-iscsi.org ([67.23.28.174]:56535 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758358Ab1EZTPa (ORCPT ); Thu, 26 May 2011 15:15:30 -0400 Subject: Re: [PATCH-v5 07/13] iscsi-target: Add iSCSI Login Negotiation + Parameter logic From: "Nicholas A. Bellinger" To: James Bottomley Cc: linux-kernel , linux-scsi , Christoph Hellwig , Hannes Reinecke , FUJITA Tomonori , Andy Grover , Mike Christie , Boaz Harrosh , Andrew Morton , Martin Svec In-Reply-To: <1306428415.4048.22.camel@mulgrave.site> References: <1305862678-30150-1-git-send-email-nab@linux-iscsi.org> <1305862678-30150-8-git-send-email-nab@linux-iscsi.org> <1306428415.4048.22.camel@mulgrave.site> Content-Type: text/plain Date: Thu, 26 May 2011 12:07:12 -0700 Message-Id: <1306436832.5807.127.camel@haakon2.linux-iscsi.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-05-26 at 11:46 -0500, James Bottomley wrote: > On Thu, 2011-05-19 at 20:37 -0700, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > This patch adds the princple RFC-3720 compatiable iSCSI Login > > phase negotiation for iscsi_target_mod. This also includes the > > target RX/TX thread queue logic which is called directly from iSCSI > > login associated code. > > > > Signed-off-by: Nicholas A. Bellinger > > I thought the upshot of the thread with Tomo was that we wouldn't be > doing all of this in-kernel. Where's the userspace upcall for this? > The technical reasons why I want to avoid this have not changed for the 1) authentication disabled and 2) 'required-to-implement' CHAP authentication cases. These where discussed at the bottom of the thread from March with Tomo-san here: http://marc.info/?l=linux-scsi&m=130108812405710&w=2 As mentioned, I am open to adding a userspace upcall for authentication payloads post merge in order to support the 'optional-to-implement' authentication cases. However, pushing the above two cases out to userspace really does add unnecessary complexity and limitiations that I want to avoid for the default iSCSI login cases. It also would break existing rtslib/rtsadmin-v2 userspace code, and require a userspace daemon be aware of the necessary initiator NodeACL information and keep the current configuration state in sync between kernel + userspace. The current code avoids this type of mess all together for the default cases, and I still only see downsides and endless maintainability headaches and delays for going back to this type of design for a kernel-level iscsi-target. --nab