Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp602436imd; Thu, 1 Nov 2018 02:30:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5fXE5dgUWQ3u28qj5S9Tk14T2FCOKBnAzGTfHZAQryahmFQX+MhD21CYfdVbrzTgiySuGKH X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10-v6mr7000729plb.214.1541064653658; Thu, 01 Nov 2018 02:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541064653; cv=none; d=google.com; s=arc-20160816; b=IaNbMPcrIxnpPv75Va82lYkdUHELV2qojA4AKizi8ktY0BoKYKqMeX00H6G57Rlc40 2p/EejdhKWPbH3z4UDjni5ZG/yIOmXq1gd89W7qTBFmhjFy9fpN4RcAmke1SQi8dLXJQ u700E21TIwl3+f+zor0nvB26Km5pVSV34bzgfBOI/NRa9veIJJYga+94Wl6npi/uyJNC R2FCLRLIf2TgUpTG5p+zsMgNVFi4P28NVJMau7P2mTW2jbbQGwAFpIO3RoHKPj10M76r OzqRw9R3/OtR+4ps8ciKR53oPEI64+DJQpnQG1IJigSVp1ZkqeZxqI48Emqjw573i2k2 YjxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=o0SHlFFRYI5U4r2Y50V9bA3mJs/utmxi6z0oMAcpUkE=; b=jW2+I3T9FheHsAebZSDkf3PkIjEwncrEdzfWqAnjMDv1YSsypVHM/0ufWEeJJVxLxV cmMCNiam6X0+8RAsViKr1Bk7D8kmKkLlyN2Vv1gJbKIN8ZzAbmfrmiMPPfow3xJzz7nG Om2jh9Y9FGy5Bj6dabfRhOIpEgID2QxVzWSSWEc52eoEsf/zaLqjF6Y41S2Zy9Fi7uko 7b+6VmuZqBSestEdy11XM2OP07sxjpA1fyg9M5COeCjMrkVfQFBk8oa+ggADC9wjUcny vlsnfixjlH09znasphHy+afWJayeVHsg7CH0G2BCWWtrWOJgbKKMyqBmeP3mZmbGpkxF koWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z30-v6si28998855pga.582.2018.11.01.02.30.37; Thu, 01 Nov 2018 02:30:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbeKASbC (ORCPT + 99 others); Thu, 1 Nov 2018 14:31:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:50200 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725800AbeKASbC (ORCPT ); Thu, 1 Nov 2018 14:31:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D07CAAF6A; Thu, 1 Nov 2018 09:28:49 +0000 (UTC) Subject: Re: [PATCH 10/16] blk-mq: cleanup and improve list insertion To: Jens Axboe , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181030183252.17857-1-axboe@kernel.dk> <20181030183252.17857-11-axboe@kernel.dk> From: Hannes Reinecke Message-ID: <579cc1b0-0147-d5b9-a507-85b56c2e0546@suse.de> Date: Thu, 1 Nov 2018 10:28:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181030183252.17857-11-axboe@kernel.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/30/18 7:32 PM, Jens Axboe wrote: > It's somewhat strange to have a list insertion function that > relies on the fact that the caller has mapped things correctly. > Pass in the hardware queue directly for insertion, which makes > for a much cleaner interface and implementation. > > Signed-off-by: Jens Axboe > --- > block/blk-mq-sched.c | 8 +------- > block/blk-mq-sched.h | 2 +- > block/blk-mq.c | 25 ++++++++++++++----------- > 3 files changed, 16 insertions(+), 19 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes