Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1025695ybk; Wed, 13 May 2020 21:04:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmXWPEfucqk7a69D0U+t1dHeTIvB1ZvjkjFvPhMVe9cZd8eRemvL0DF2cFySbaOOpUz4Qg X-Received: by 2002:a17:906:51b:: with SMTP id j27mr1983865eja.246.1589429048246; Wed, 13 May 2020 21:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589429048; cv=none; d=google.com; s=arc-20160816; b=uCLw6Z5VQGWw8zGJs3R3AYF+3lXO3DkP7YpGN2XRzEXC4gUR0K7yF1j8/788vGpLuy +k2Ocw08jNuVKHHX6f8OxZ+Uype3NhEBayaJUC6B+OcLGJAax6HK17y/kYGlOiWfHy4I BK+hAOU8FqQahStkiivNSMNfLqEucrQG4EXObNGTbLf9+geJKMHnonhJC9tt1Z4qG1SI xzA82AzyE1Sy56a25+RznVXYFHswHiD+aXjA+NvnMtwTOQiLYmfSmQFIGYRiV2f8rA0Z l/Q2wpV5CgdEaM7lNDmt8eeptaBA+mavDy+ewRt+PEX6THuypyc9jrH4n1+jTVvlPy+A 208w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id:date :subject:cc:to:from; bh=D4CY0DeONIwHhOUVl3CQF4IFw94HI2ISbdqYw748itc=; b=v+oiFvMZVNatPeXTgmJ7aPRDCdeRhImQCJT4akjlMb46BLWkg6pRJ553miqZC8kTPM H4IkGcH0EszpDPy9asT9RNzm8eFyIcR9G0KfT6gmwcY1p7H6iq6Ayj94b+5CHFKzK4WT 7jXzBxX1mz/xOxznAG1s7oeOzCruyu9f0decI7nVL8WVwh4cu/rMULbNaUZ9ROnS7HVw EVjBhA3D2ugbCrxacfRSu9mCMTftwFTfK87HMQ/voDS5yQglvsLCqSXZZMX8sDHVdKZM CfP5xfPp2M1O9q4ynUwI+69Pbe2nExPY8DfSRzpIRkJWkxpDCmNY5yoeMgvcV2IdJSmr dOiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si844435edt.360.2020.05.13.21.03.46; Wed, 13 May 2020 21:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725943AbgENEBz (ORCPT + 99 others); Thu, 14 May 2020 00:01:55 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:47474 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725878AbgENEBz (ORCPT ); Thu, 14 May 2020 00:01:55 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-372-aP7_It_xNvmGipQcRGESVw-1; Thu, 14 May 2020 00:01:50 -0400 X-MC-Unique: aP7_It_xNvmGipQcRGESVw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CDEC819200C0; Thu, 14 May 2020 04:01:49 +0000 (UTC) Received: from ldigby.remote.csb (vpn2-54-19.bne.redhat.com [10.64.54.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 710CF2E169; Thu, 14 May 2020 04:01:48 +0000 (UTC) From: Lance Digby To: martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH target] target: Add initiatorname to NON_EXISTENT_LUN error Date: Thu, 14 May 2020 14:01:38 +1000 Message-Id: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: gmail.com Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The NON_EXISTENT_LUN error can be written without an error condition on the initiator responsible. Adding the initiatorname to this message will reduce the effort required to fix this when many initiators are supported by a target. Signed-off-by: Lance Digby --- drivers/target/target_core_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/target/target_core_device.c b/drivers/target/target_co= re_device.c index 4cee113..604dea0 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -100,9 +100,10 @@ =09=09 */ =09=09if (unpacked_lun !=3D 0) { =09=09=09pr_err("TARGET_CORE[%s]: Detected NON_EXISTENT_LUN" -=09=09=09=09" Access for 0x%08llx\n", +=09=09=09=09" Access for 0x%08llx from %s\n", =09=09=09=09se_cmd->se_tfo->fabric_name, -=09=09=09=09unpacked_lun); +=09=09=09=09unpacked_lun, +=09=09=09=09se_sess->se_node_acl->initiatorname); =09=09=09return TCM_NON_EXISTENT_LUN; =09=09} =20 --=20 1.8.3.1