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 D8B4CEB64D7 for ; Fri, 23 Jun 2023 05:51:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbjFWFvK (ORCPT ); Fri, 23 Jun 2023 01:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231661AbjFWFu5 (ORCPT ); Fri, 23 Jun 2023 01:50:57 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE940E7D for ; Thu, 22 Jun 2023 22:50:56 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 7CF1267373; Fri, 23 Jun 2023 07:50:53 +0200 (CEST) Date: Fri, 23 Jun 2023 07:50:53 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Damien Le Moal , Ming Lei , Mike Snitzer Subject: Re: [PATCH v4 5/7] block: Preserve the order of requeued requests Message-ID: <20230623055053.GE9085@lst.de> References: <20230621201237.796902-1-bvanassche@acm.org> <20230621201237.796902-6-bvanassche@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621201237.796902-6-bvanassche@acm.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org > + blk_mq_process_requeue_list(hctx); Should this do list_empty_careful checks on ->requeue_list and ->flush_list so that we can avoid taking the requeue lock when these conditions aren't met before calling into blk_mq_process_requeue_list?