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 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C665C43387 for ; Mon, 17 Dec 2018 11:17:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 047402133F for ; Mon, 17 Dec 2018 11:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbeLQLQ7 (ORCPT ); Mon, 17 Dec 2018 06:16:59 -0500 Received: from verein.lst.de ([213.95.11.211]:33685 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeLQLQ7 (ORCPT ); Mon, 17 Dec 2018 06:16:59 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 4649F68DD3; Mon, 17 Dec 2018 12:16:58 +0100 (CET) Date: Mon, 17 Dec 2018 12:16:58 +0100 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Jeff Moyer , Mike Snitzer Subject: Re: [PATCH V2 3/4] blk-mq: fix dispatch from sw queue Message-ID: <20181217111658.GA6341@lst.de> References: <20181217104248.5828-1-ming.lei@redhat.com> <20181217104248.5828-4-ming.lei@redhat.com> <20181217110857.GA5995@lst.de> <20181217111520.GD1329@ming.t460p> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181217111520.GD1329@ming.t460p> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Dec 17, 2018 at 07:15:21PM +0800, Ming Lei wrote: > On Mon, Dec 17, 2018 at 12:08:57PM +0100, Christoph Hellwig wrote: > > > > > > On Mon, Dec 17, 2018 at 06:42:47PM +0800, Ming Lei wrote: > > > When requst is added to rq list of sw queue(ctx), the rq may be from > > > different hctx, after multi queue mapping is introduced. > > > > > > So we have to put the request into one per-queue-type list inside > > > sw queue, otherwise the request may be dispatched to wrong hw queue. > > > > Hmm. For one I don't think splitting the lock makes sense even for > > split lists. > > Second, do we really need different lists, or just take > > It depends if the driver/existed blk-mq code can work well if one > request is dispatched to wrong hctx. > > > the type into account when dispatching from rq_list? I'm not really > > This way may be inefficient since the whole list has to be iterated once > for finding all requests aimed to one specific hctx. Then just update the changelog to make this clear, please!