From patchwork Mon Oct 29 16:37:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10659739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 33C681751 for ; Mon, 29 Oct 2018 16:39:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B21229BC1 for ; Mon, 29 Oct 2018 16:39:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FDBD29BCA; Mon, 29 Oct 2018 16:39:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4E1729BC1 for ; Mon, 29 Oct 2018 16:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727830AbeJ3B2a (ORCPT ); Mon, 29 Oct 2018 21:28:30 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:40470 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728154AbeJ3B1J (ORCPT ); Mon, 29 Oct 2018 21:27:09 -0400 Received: by mail-it1-f196.google.com with SMTP id i191-v6so10174507iti.5 for ; Mon, 29 Oct 2018 09:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7tpaRVSjhaK88jexqA/z4LLCkTo0WudeZhco39P0CL8=; b=aAiOocQM/qr+dkvhRoy7DTtw2TGJZ8QxlsS1xfpmfB+Y1LESvD+yGnFlQCdmTlmgpG zTaEJGBAvpy0+INyAHzCkDpFdw0Kr+ECbtU3feolq5l/akofreFA9e54SMCBZ5q0FYO8 Eh1RrH/qV7RAJucf6gy4E+L0LF/Jo+AK2adjHQxM99CttRVTH+MCx31WgfQFeMpOqJrR /6lV6K5mno6EWFoK8SWDgtHx8vZQKeeUwdneUzcE9mWzqGu7qmTRsimK/fW15PBEpqM/ HigkDuP1q5z7fj9kVM9XOduKJGnTZDu4hyU74ayOryozKpx3Gg9zDffpFyVvo5EIML5K +/wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7tpaRVSjhaK88jexqA/z4LLCkTo0WudeZhco39P0CL8=; b=mAUQf5ibRck1OalOn72pCL2i433jKxjC6I+KRatohYUFIDRiT/2ND3EZSa9eHpOMFO 9AEfNcTmThh8E6H8J5edT6ZU1Gl7xVAD8+b4wX2OWox6JhgzMDv86zvlW/JH/dYBJBnK tbfJhYvbdXqgG9MIkNIyvMTh6saHV9Wca0X/rnteHgcg4VVvoYsrK7DaWK/cRiDvddtT VR07LRkr//Abh69+d5JHVtjSR7751WHGprHnOnoi21+Xubq6iW+KxTFfmHM43D4EuDfL +Cfi86ZuTMvJvq9sabSf4VOdc3n4KZY1vEujsU+VVRuaXBlI8weDhu/j96d8HOXxBCBE n1pA== X-Gm-Message-State: AGRZ1gIEqGV47ZGOVxQMO3CH7Wz4VfyIQ3SUh64/bobLYS5m4OeLSzv4 buwTL/CKsZm8HbGTZlXuYDE0Jw== X-Google-Smtp-Source: AJdET5dRoGp+h4o2frTysI1QUlAJzxsn4/JpObChfmceUa8YbO8e4XAnZTHQrwNDzUBsDQ/H4+woxA== X-Received: by 2002:a24:ce47:: with SMTP id v68-v6mr3818711itg.163.1540831067893; Mon, 29 Oct 2018 09:37:47 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id q15-v6sm3367019itc.38.2018.10.29.09.37.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 09:37:46 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 03/14] blk-mq: provide dummy blk_mq_map_queue_type() helper Date: Mon, 29 Oct 2018 10:37:27 -0600 Message-Id: <20181029163738.10172-4-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029163738.10172-1-axboe@kernel.dk> References: <20181029163738.10172-1-axboe@kernel.dk> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Doesn't do anything right now, but it's needed as a prep patch to get the interfaces right. Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- block/blk-mq.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/block/blk-mq.h b/block/blk-mq.h index 889f0069dd80..79c300faa7ce 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -80,6 +80,12 @@ static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q, return q->queue_hw_ctx[set->map[0].mq_map[cpu]]; } +static inline struct blk_mq_hw_ctx *blk_mq_map_queue_type(struct request_queue *q, + int type, int cpu) +{ + return blk_mq_map_queue(q, cpu); +} + /* * sysfs helpers */