Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4067473rwl; Sun, 2 Apr 2023 22:15:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aPGY62v6QnV8mTGOgP8MoTiQJGtvsOZ1NIkBWrbV+aQFDPnWfofqT8liDvJaleqLddsbB4 X-Received: by 2002:a17:906:1645:b0:88d:f759:15ae with SMTP id n5-20020a170906164500b0088df75915aemr35650882ejd.42.1680498931075; Sun, 02 Apr 2023 22:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680498931; cv=none; d=google.com; s=arc-20160816; b=LaX5l9lMJNku5+sWdSThrj0lTBP+39eUAMH3Bh/z/bVy6FkEMRJaQFcXInzN6yg+XD PzpOHzFks9WCYOMWaElcz52wfKo0r72hEHVqWp+DoKf8Tf+yl3KwXjd6m6dqPDEXhztE RXAoRLv9HFzBMCx4W7vytIa5v0mHuQP+55nkoqIqkcjqziv0hefE/1BDHYbnhLSdO9Ka AQRmaGyxtnT8Ioyuvqy82oMwLzpVSdidKYgPKq4+9j+gsA1fOtbjUgW9SfHaEq8XdUwO 75Wq/AW7Co7O1w4zB7iUZLXYQyVpmRGyVh0S6dZH8KRpcvubFW/GoXopnTf6C1kg03F5 UzDQ== 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:reply-to:user-agent :mime-version:date:message-id; bh=Bvd914M/UwSXI3s/e8kNHpBKdnATLWc4glIVkykp9V0=; b=KBOwtNWrhouI5nLluT2EzZVF14TAmo2wgwD9FhE+5gwwCy5EowJypbj8QunVl1Zne5 c0P39nihAd2X1PdSQ4eHMHrAYDEmY9LuVixlRkLkXyrlx73YEKc4TgUDGSLkKwjN1Mqp pIH+wLkrXxOi4u3eJWHs73pdiZqFsDAhb5SM8auax5hwdYbIZKez+ECzVKEvfbuoMrKm KpX7dBQOJiKIZGKILZVBkXgennjQJBQ4dUrQDa8KaLcX+a1dZwyYh+o1VgXe5B3wC7Mp hQROVS6Wy1Dewia33mM3jcSfVboJzeMEilsW5JssY56f8UeTBIqBb/UvDSoe8q3qs7xm GBhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a170906840c00b009394ba09fe6si5453896ejx.458.2023.04.02.22.15.06; Sun, 02 Apr 2023 22:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231381AbjDCFNl (ORCPT + 99 others); Mon, 3 Apr 2023 01:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjDCFNk (ORCPT ); Mon, 3 Apr 2023 01:13:40 -0400 Received: from mp-relay-01.fibernetics.ca (mp-relay-01.fibernetics.ca [208.85.217.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1282AD04; Sun, 2 Apr 2023 22:13:39 -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-01.fibernetics.ca (Postfix) with ESMTPS id E454EE1946; Mon, 3 Apr 2023 05:13:38 +0000 (UTC) Received: from localhost (mailpool-mx-02.fibernetics.ca [208.85.217.141]) by mailpool-fe-02.fibernetics.ca (Postfix) with ESMTP id CF919609E9; Mon, 3 Apr 2023 05:13:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at X-Spam-Score: -0.2 X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from mailpool-fe-02.fibernetics.ca ([208.85.217.145]) by localhost (mail-mx-02.fibernetics.ca [208.85.217.141]) (amavisd-new, port 10024) with ESMTP id dBUZ5gDopRJy; Mon, 3 Apr 2023 05:13:37 +0000 (UTC) Received: from [192.168.48.17] (host-184-164-23-94.dyn.295.ca [184.164.23.94]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: dgilbert@interlog.com) by mail.ca.inter.net (Postfix) with ESMTPSA id AB4B860529; Mon, 3 Apr 2023 05:13:36 +0000 (UTC) Message-ID: <1a137ccb-6a92-3fc6-dfbd-f6a6273e501d@interlog.com> Date: Mon, 3 Apr 2023 01:13:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Reply-To: dgilbert@interlog.com Subject: Re: [PATCH v3 05/11] scsi: scsi_debug: Use scsi_block_requests() to block queues Content-Language: en-CA To: John Garry , jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, bvanassche@acm.org References: <20230327074310.1862889-1-john.g.garry@oracle.com> <20230327074310.1862889-6-john.g.garry@oracle.com> From: Douglas Gilbert In-Reply-To: <20230327074310.1862889-6-john.g.garry@oracle.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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-03-27 03:43, John Garry wrote: > The feature to block queues is quite dubious, since it races with in-flight > IO. Indeed, it seems unnecessary for block queues for any times we do so. > > Anyway, to keep the same behaviour, use standard SCSI API to stop IO being > sent - scsi_{un}block_requests(). > > Signed-off-by: John Garry Acked-by: Douglas Gilbert Thanks.