Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3524617pxb; Mon, 4 Apr 2022 19:53:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt+FtHwYhodP22NT4G5UrjlvwO8AuOW0pk1RRvUGoBRmFrNvCl0YObAMWnoPlODCbiJ0CR X-Received: by 2002:a63:778b:0:b0:398:1568:1c53 with SMTP id s133-20020a63778b000000b0039815681c53mr1038651pgc.548.1649127234537; Mon, 04 Apr 2022 19:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649127234; cv=none; d=google.com; s=arc-20160816; b=dUScKEU42eA4lBjgzuitBJmAfU7n4Upzi4NuaFfSyYds8Ymo5bFw3V0L82YEAR3CSE 471SSh0KGCIq20WO/SDcxZy+rlxoi/QwMiCecP4UIPHVEc/BDK7cEUzpUkJchQzAT9Ah wm1UHWAlGmAh7WM3A5gkvYp1aVrBCutL+AlCtKyXy2GYeraDhhjDhFZXcLxSQbd2QSAK s9ci8vBWofC/UHhuMBErQoD8uAkSRcxf75ArEyErveVI8g3FrOCXtUD7XuZ7A5kb1z7q r7aFcJo0XV5+/aayES0mgMVPAC9poORSIE0pz59vi8uVit/I9D6FJwBHrbAVQysKB2q1 XS9w== 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:dkim-signature:dkim-signature; bh=c3Jl3xN1+ZJDwDSqXEjt8XdEW9eHbNf/gHTrPbTlPGg=; b=f9hb/FpmOxTkcYw8PuxBKsT1Jl0sOoh2dNS9ZXqLzamS7cCQ+Xo3Fi7OFA9gtC/gkw tsGMOZOu7kwBv8RqwAbEjXCFSvtePsQyIvMZdopd1lPRtEp+85j6+X4ZKv7pEh9xzYEj xctKOiHBpovkHXzUCzhAYAyROkXwxDIIZoaYgKUr9CPqsAm0j1Z9ZFKDcClxw/cX/hr2 X9iFD81OslbSGiDRaFOpAVs+IVqgPtSoXyVM0QYnAd86jZRYn75njAqVwFyGuKGi28Nf cT0yjHdUxZih3TMywSuaeVG9KznZVC/boGQBA8Bu7pqvKNzf4A5mjMEIRLnMcMWPrKHK 8dFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kxuT6iwU; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q18-20020a17090311d200b0015629c201b8si11911468plh.358.2022.04.04.19.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kxuT6iwU; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56AF6462B2B; Mon, 4 Apr 2022 18:18:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354549AbiDDFaA (ORCPT + 99 others); Mon, 4 Apr 2022 01:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230304AbiDDF36 (ORCPT ); Mon, 4 Apr 2022 01:29:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B02021838; Sun, 3 Apr 2022 22:28:03 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A3D13210E0; Mon, 4 Apr 2022 05:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649050081; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c3Jl3xN1+ZJDwDSqXEjt8XdEW9eHbNf/gHTrPbTlPGg=; b=kxuT6iwU+kWRUJcyoskUv3rl12gvoI8ffMEuVPXzahulIXifhNchaCcX65dk2jFzy7hU5c F02BfyCip+v0TPVdM2uRjkNC3gqHHCvxAnhikZJWu+G90e69AxtexFh7jqM7flzeoufnar F9zA9J9OQjTydzxfF07HTStC19CJuvg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649050081; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c3Jl3xN1+ZJDwDSqXEjt8XdEW9eHbNf/gHTrPbTlPGg=; b=+ZZyEJ/T57xeYaKDKJWa6MPOVxzG0urOZMGW6OkTuURzm7hAfNW8ety1NAvksZLvB4WGTT GoVd81QGpMD+rVCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 496C513A7C; Mon, 4 Apr 2022 05:28:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mwkrEOGBSmK3RAAAMHmgww (envelope-from ); Mon, 04 Apr 2022 05:28:01 +0000 Message-ID: <769bcd36-4818-8470-2daa-49ac5c05b33a@suse.de> Date: Mon, 4 Apr 2022 07:28:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [REQUEST DISCUSS]: speed up SCSI error handle for host with massive devices Content-Language: en-US To: Mike Christie , Wenchao Hao , Steffen Maier , linux-scsi@vger.kernel.org, "linux-kernel@vger.kernel.org" , "James E.J. Bottomley" , "Martin K. Petersen" , Lee Duncan , John Garry Cc: Wu Bo , Feilong Lin , zhangjian013@huawei.com References: <71e09bb4-ff0a-23fe-38b4-fe6425670efa@huawei.com> <331aafe1-df9b-cae4-c958-9cf1800e389a@huawei.com> <64d5a997-a1bf-7747-072d-711a8248874d@suse.de> <1dd69d03-b4f6-ab20-4923-0995b40f045d@suse.de> <78d41ec1-b30c-f6d2-811c-e0e4adbc8f01@oracle.com> <84b38f16-2a32-f361-43e5-34bce1012e71@oracle.com> From: Hannes Reinecke In-Reply-To: <84b38f16-2a32-f361-43e5-34bce1012e71@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/3/22 19:17, Mike Christie wrote: > On 4/3/22 12:14 PM, Mike Christie wrote: >> We could share code with scsi_ioctl_reset as well. Drivers that support >> TMFs via that ioctl already expect queuecommand to be possibly in the >> middle of a run and IO not yet timed out. For example, the code to >> block a queue and reset the device could be used for the new EH and >> SG_SCSI_RESET_DEVICE handling. >> > > Hannes or others, > > How do parallel SCSI drivers support scsi_ioctl_reset? Is is not fully > supported and more only used for controlled testing? That's actually a problem in scsi_ioctl_reset(); it really should wait for all I/O to quiesce. Currently it just sets the 'tmf' flag and calls into the various reset functions. But really, I'd rather get my EH rework in before we're start discussing modifying EH behaviour. Let me repost it ... Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer