Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1601785rdb; Sun, 8 Oct 2023 16:14:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqxBohUsBP1/atHz2DYHvoPwB+IDlKA5J2sE45oKM+uLT6EcEzrzKop32SJubYhb4YAMpX X-Received: by 2002:a17:90b:17c6:b0:268:4485:c868 with SMTP id me6-20020a17090b17c600b002684485c868mr11533985pjb.49.1696806873941; Sun, 08 Oct 2023 16:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696806873; cv=none; d=google.com; s=arc-20160816; b=P+LID1ixR4DAfRiRah3bap9+RFV/Bs8Qp3CPPVlnn2qPiXLQgwSYNfDeoZMRGIwj4F Op7vxvX/RoYl+QniXnpikKqe6vLdHseAtxCRcIIkMpKGiFe6x6GratdVi1fwM/c/qkNS 03EaPaplxFsMwbCXktafXv7rqV8I9niahWO22n6FfIzmpcbYPAzADi4FY/dd+7Z+PC5l 08GtyQnnmTlnZdGLOh1MfY3ZjS7WwdbKR4bJ4NvPYqSpafysuhhmxIHaK/thaA5o8FIC OlYOoLG+pN8263y5EFeKf7IZHUUYGbtrXo8T9jDi1pXFwOZO9ZlBhsH4YHCDLK687hcO clkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:reply-to:subject:from:user-agent :mime-version:date:message-id; bh=9FYYMTxUhm305lOdQ6+5pzw1R2HCwmolZy+4PsyF//A=; fh=oQBFtupM2DJNP90cSEJuUHZ5nWSImwDzrtDtb03ybG4=; b=ISWHaxrboU1ssoVPmVx6foX4f4Tzpb/S3H0jVUGvl90o5IRP3ABUiXq+ihyunh9u3H NEtY1PHMDxKUsbyn4I2B6/F+TIiply3GlWB5fzZ3iiI6OcmHANPy1y865FhnKqUjh/C3 etkZLKSCuXmUQX12YsG97RHntEjYnWi/W6qC5jv0l3rccDMjuipveANq5Ev3fWgal8Uv TF5j124uVUmIBGsMX7JeE+oPGz29nVLjeNoD5Btxie/XUJysJqBGfp2ipX+wq2fkmCQ1 9Wc5Y1BoC5NRh6KoosvZHNHSv9V6QJFZecE7cAEqf10eCluwKvMl5nzbTRa4rTuW/oNq nwuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id gw16-20020a17090b0a5000b002776ebcaaffsi4522606pjb.0.2023.10.08.16.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 16:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B8D738024C5F; Sun, 8 Oct 2023 16:14:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344925AbjJHXOH (ORCPT + 99 others); Sun, 8 Oct 2023 19:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344437AbjJHXOG (ORCPT ); Sun, 8 Oct 2023 19:14:06 -0400 Received: from mp-relay-02.fibernetics.ca (mp-relay-02.fibernetics.ca [208.85.217.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7638C9D; Sun, 8 Oct 2023 16:14:05 -0700 (PDT) Received: from mailpool-fe-02.fibernetics.ca (mailpool-fe-02.fibernetics.ca [208.85.217.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mp-relay-02.fibernetics.ca (Postfix) with ESMTPS id 95C7A765D3; Sun, 8 Oct 2023 23:14:04 +0000 (UTC) Received: from localhost (mailpool-mx-01.fibernetics.ca [208.85.217.140]) by mailpool-fe-02.fibernetics.ca (Postfix) with ESMTP id 7F9296091F; Sun, 8 Oct 2023 23:14:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at X-Spam-Score: -0.199 X-Spam-Level: X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from mailpool-fe-02.fibernetics.ca ([208.85.217.145]) by localhost (mail-mx-01.fibernetics.ca [208.85.217.140]) (amavisd-new, port 10024) with ESMTP id vr5ko5C6duzg; Sun, 8 Oct 2023 23:14:03 +0000 (UTC) Received: from [192.168.48.17] (host-104-157-209-188.dyn.295.ca [104.157.209.188]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dgilbert@interlog.com) by mail.ca.inter.net (Postfix) with ESMTPSA id 95C4B60455; Sun, 8 Oct 2023 23:14:02 +0000 (UTC) Message-ID: Date: Sun, 8 Oct 2023 19:14:02 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Douglas Gilbert Subject: Re: [PATCH v5 09/10] scsi: scsi_debug: Add debugfs interface to fail target reset Reply-To: dgilbert@interlog.com To: Wenchao Hao , "James E . J . Bottomley" , "Martin K . Petersen" , open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, louhongxiang@huawei.com, kernel test robot References: <20230922092906.2645265-1-haowenchao2@huawei.com> <20230922092906.2645265-10-haowenchao2@huawei.com> Content-Language: en-CA In-Reply-To: <20230922092906.2645265-10-haowenchao2@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 08 Oct 2023 16:14:31 -0700 (PDT) X-Spam-Level: ** On 2023-09-22 05:29, Wenchao Hao wrote: > The interface is found at > /sys/kernel/debug/scsi_debug/target/fail_reset where > identifies the target to inject errors on. It's a simple bool type > interface which would make this target's reset fail if set to 'Y'. > > Signed-off-by: Wenchao Hao > Reported-by: kernel test robot Tested by setting 'echo 1 > /sys/bus/pseudo/drivers/scsi_debug/opts' and observing 'tail -f /var/log/syslog'. Looks good including that fail_reset is readable so its current state can be checked. Tested-by: Douglas Gilbert