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 89939C77B7A for ; Wed, 24 May 2023 06:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239198AbjEXGNF (ORCPT ); Wed, 24 May 2023 02:13:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbjEXGNF (ORCPT ); Wed, 24 May 2023 02:13:05 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA81132 for ; Tue, 23 May 2023 23:13:04 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id D87A068CFE; Wed, 24 May 2023 08:13:00 +0200 (CEST) Date: Wed, 24 May 2023 08:13:00 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Mike Snitzer , Damien Le Moal , Jaegeuk Kim , Ming Lei , Jianchao Wang Subject: Re: [PATCH v3 2/7] block: Send requeued requests to the I/O scheduler Message-ID: <20230524061300.GD19611@lst.de> References: <20230522183845.354920-1-bvanassche@acm.org> <20230522183845.354920-3-bvanassche@acm.org> <20230523071835.GB8758@lst.de> <639fa0ac-e7b9-2ba7-3d68-3fe1a501e779@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <639fa0ac-e7b9-2ba7-3d68-3fe1a501e779@acm.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, May 23, 2023 at 03:30:16PM -0700, Bart Van Assche wrote: > static inline void blk_mq_sched_requeue_request(struct request *rq) > { > - if (rq->rq_flags & RQF_USE_SCHED) { > - struct request_queue *q = rq->q; > - struct elevator_queue *e = q->elevator; > - > - if (e->type->ops.requeue_request) > - e->type->ops.requeue_request(rq); > - } > + if (rq->rq_flags & RQF_USE_SCHED) > + rq->rq_flags |= RQF_REQUEUED; > } I'd drop this helper function if we go down this way. But maybe we might just want to keep the method. Sorry for the noise.