Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp873848rdb; Sat, 7 Oct 2023 02:46:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqB/FKtgA7//waTjTtAacgVoKc68qrdP2xmsGQtmcebCqtRF+3gnXHWO0j3H7zNV+Npiu1 X-Received: by 2002:a05:6358:919:b0:134:e4fe:e162 with SMTP id r25-20020a056358091900b00134e4fee162mr9957442rwi.13.1696671983144; Sat, 07 Oct 2023 02:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696671983; cv=none; d=google.com; s=arc-20160816; b=wUW9RzU4+NKzAeqWo+ZE18Q7zCXMt9bJ5SQ0mL1qelJvrTB/lO4NOQAxQdBJqdYoxc se0XsvpmbEoYz9FfEaktfqw/Mrv7GAg5z+YJYC5tUW2r8jJ2ztGvaHe7i5f/1xdFvEMg Ilw7ihomS2Ber1kGMVaeob4ME2DByB0EdLlg9FGaGTqXcR43v66ljFUhk1cFAx+rfzoF fBNCeQIPQgMcn7ECHan1ect79hcTIqkUgOEOBXTVnDX7dWeHknwpWu8joJzinoobXYtW GzvlllURm0Za7gw9+qsMjuGFqXmNtFFoV7+Vw+8tdCtsDEBdXJTVwvTYLM4n8hl7dM8X ruEQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=pcJ3Xkr7qZxV9hiCxiaJTVPcZX7tThAI3b1kyBcGRnI=; fh=1P8NgU50PxHZdbwZcm0RhGfpfaEszaZZUlNuX7tjKbk=; b=RJY/YNclHihujmJ7UmrHwpo/dINl81qJcSyCXrI+lEs6nFWHe1gLhqTFl3yRAlv+mB ajQJGAzzwUEIR8wK/+U6TiS4sz3nRa7v/P/xapO5oPR9x5VSWR8ww299hSiKBn6r4feP cTHE4fJovbiX74o1grGcRq/PcYeLNfQw7dbMLM8YaALplrzKQSXNNhQutXcRAPHA0KVn e6i6jwgyrxVWXqeINlYNTmvHd8ooBAfSYhI/j7ie7dAfDLNTCFtr701zRIMwyX3jESoO Y9DtfhFhYz6AJ9Viw2kJlip6lmlzjGZyp8himirUQbe9Njl2rBBJEj/TR6dCbrJiIsGK mhEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t24-20020a17090b019800b0027717627cf6si7873814pjs.41.2023.10.07.02.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 02:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4F22080926BC; Sat, 7 Oct 2023 02:45:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343754AbjJGJpj (ORCPT + 99 others); Sat, 7 Oct 2023 05:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjJGJph (ORCPT ); Sat, 7 Oct 2023 05:45:37 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B7FBC; Sat, 7 Oct 2023 02:45:35 -0700 (PDT) Received: from kwepemm000012.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4S2gMY6H80z1P7j2; Sat, 7 Oct 2023 17:43:05 +0800 (CST) Received: from [10.174.178.220] (10.174.178.220) by kwepemm000012.china.huawei.com (7.193.23.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Sat, 7 Oct 2023 17:45:33 +0800 Message-ID: Date: Sat, 7 Oct 2023 17:45:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v5 08/10] scsi: scsi_debug: Add new error injection reset lun failed Content-Language: en-US To: , "James E . J . Bottomley" , "Martin K . Petersen" , , CC: , References: <20230922092906.2645265-1-haowenchao2@huawei.com> <20230922092906.2645265-9-haowenchao2@huawei.com> From: Wenchao Hao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.220] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm000012.china.huawei.com (7.193.23.142) X-CFilter-Loop: Reflected X-Spam-Status: No, score=2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 07 Oct 2023 02:45:53 -0700 (PDT) X-Spam-Level: ** On 2023/10/7 5:04, Douglas Gilbert wrote: > On 2023-09-22 05:29, Wenchao Hao wrote: >> Add error injection type 3 to make scsi_debug_device_reset() return FAILED. >> Fail abort command foramt: > > s/foramt/format/ > >> >> Examples: >>      error=/sys/kernel/debug/scsi_debug/0:0:0:1/error >>      echo "0 -10 0x12" > ${error} > > These examples are misleading. Same with the one in patch 7/10 . The example > should be showing an invocation that exercises _this_ patch. So the first > byte of the echo should be 4 not the 0 shown above. > > Doug Gilbert > Would update in next version. Would you continue reviewing patch 9/10 and 10/10?