From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3CEAC25B67 for ; Tue, 24 Oct 2023 00:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjJXAJr (ORCPT ); Mon, 23 Oct 2023 20:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJXAJq (ORCPT ); Mon, 23 Oct 2023 20:09:46 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51BC4D6E; Mon, 23 Oct 2023 17:09:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBF7AC433C8; Tue, 24 Oct 2023 00:09:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698106185; bh=XoBcu2S1QUn1dsbbkNcfAW0O/CD8hsF+ZK3HjhYrmSU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qcbEkmHcGHLBINZhMUhmnedgbEltD0RMagYVLNrmE0syu7eSMWBAVI8XhnDPrAJ64 HNwhyQqNaxMF7vrk8tCzlcyS3brYyHPijkTh0163soK9TzmMvDobnPUJXLdvBL0VZQ g0tiGSE6o70Oka4HA1EZFuxZoUgB9oyThA25BzH+DbaxQG2jvboMFfmNolwn0YQ3IO dAMIV/9UYSGX5BXaGxVkKQidKBF7f3vapgaNSUyY7SSu44hz12mPT5RQEPx3THWEXN vvjC01pVvG/soDRlgfJpt2AnQKrXwN1I+bK6doCqciTCW60hJn06vRi1rNypP7HekV XFL+CP+EkuXjQ== Message-ID: <3ed4d82b-1d3d-4b41-8266-ca43f79ee7de@kernel.org> Date: Tue, 24 Oct 2023 09:09:42 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v14 06/19] scsi: core: Introduce a mechanism for reordering requests in the error handler Content-Language: en-US To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, "Martin K . Petersen" , Christoph Hellwig , Ming Lei , "James E.J. Bottomley" References: <20231023215638.3405959-1-bvanassche@acm.org> <20231023215638.3405959-7-bvanassche@acm.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20231023215638.3405959-7-bvanassche@acm.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 10/24/23 06:53, Bart Van Assche wrote: > Introduce the .eh_needs_prepare_resubmit and the .eh_prepare_resubmit > function pointers in struct scsi_driver. Make the error handler call > .eh_prepare_resubmit() before resubmitting commands if any of the > .eh_needs_prepare_resubmit() invocations return true. A later patch > will use this functionality to sort SCSI commands by LBA from inside > the SCSI disk driver before these are resubmitted by the error handler. > > Cc: Martin K. Petersen > Cc: Damien Le Moal > Cc: Christoph Hellwig > Cc: Ming Lei > Signed-off-by: Bart Van Assche Looks OK to me. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research