From patchwork Thu Oct 25 21:10: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: 10656551 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 1136F15A7 for ; Thu, 25 Oct 2018 21:11:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06D6E2C648 for ; Thu, 25 Oct 2018 21:11:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF3DE2C650; Thu, 25 Oct 2018 21:11:17 +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 AB2782C648 for ; Thu, 25 Oct 2018 21:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbeJZFpe (ORCPT ); Fri, 26 Oct 2018 01:45:34 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:33603 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbeJZFpe (ORCPT ); Fri, 26 Oct 2018 01:45:34 -0400 Received: by mail-it1-f195.google.com with SMTP id h6-v6so3042886ith.0 for ; Thu, 25 Oct 2018 14:11:16 -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=riSa/XmRDf7tNJepdUKIvyeJjY9wUJADnK+ZzQPKT7Y=; b=wKBEKNQR4WNsFmR0pTLekevi0eMENA1X/q8youYguN+t/VPbZHA2G8KwBpUo2mOEWh KTOqO51DyDmns5e2ezwQMD9qoCYO6NORD2k4eqT5R9BN53FIOesm/dT0gTgxNPeYd94u NloephoUDnov0ryz5DuLSZuKXE3JEEamh3EhcQgA09lMCpCDhMu1AKj3MUDPTD0zNUVG Nt33WX3sBWtihq7ov0i72n0ycIfoX6786qDZ1J6HQdp8IKD4yTNHzK19eZkmQRNg0TCN Cr2Mjq8ucCJLFJa4kKY7cMTQmluJoIPofD6RtcX6DQsOi4TWmUNzFENB4/IU+f2URfwd asrg== 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=riSa/XmRDf7tNJepdUKIvyeJjY9wUJADnK+ZzQPKT7Y=; b=RA6JLVAFc5ohl4B64XB8TzIHTSAJOwmwX6L8Ms1m6f0h7RMOZqXEXOkv/rKEkep7hd n+sFm7C317kj/KiPz3CWBshIX8QUG2CCNP8P3laOw2PXDnBMz9g67jIFapmcTY/YKncV xVtKXl05LPexOAIpRqSJZVdiegb3PXE4hDWMwJQppNiBgoQxiwIAmFI034whAemDT32U +BkylWLCO3zh1MCEztcPwXU6F7/jYmRmFCYL3S1qbQqCJNEEoN/hX8GAtY+gEEyRIUi0 u6pukmsytbxjn7azIa77cEOzqQKdjlqQ3U91hfiNB2RwPVPY9EMSoSTMFjwHWEvGXZVR dTlA== X-Gm-Message-State: AGRZ1gLBau0UckfSmAwfOBw0NwiRmPBLZFPjY9YFZYqS0TspSyEUUH7v 6nzz5IY3BJgO0+wjlDavY+rJGrLuIpzAOA== X-Google-Smtp-Source: AJdET5fq0h2S5NAygTbp/oT55bBih3wyWKiKGZCMEhyDg8uNQv8dr9BVoNxoHwUDqt4B3uOSSutQzQ== X-Received: by 2002:a24:95c4:: with SMTP id m187-v6mr2145031itd.83.1540501875452; Thu, 25 Oct 2018 14:11:15 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e65-v6sm3446375ioa.76.2018.10.25.14.11.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 14:11:14 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 16/28] blk-cgroup: remove legacy queue bypassing Date: Thu, 25 Oct 2018 15:10:27 -0600 Message-Id: <20181025211039.11559-17-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025211039.11559-1-axboe@kernel.dk> References: <20181025211039.11559-1-axboe@kernel.dk> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We only support mq devices now. Signed-off-by: Jens Axboe Reviewed-by: Hannes Reinecke --- block/blk-cgroup.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 992da5592c6e..5f10d755ec52 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1446,8 +1446,6 @@ int blkcg_activate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_freeze_queue(q); - else - blk_queue_bypass_start(q); pd_prealloc: if (!pd_prealloc) { pd_prealloc = pol->pd_alloc_fn(GFP_KERNEL, q->node); @@ -1487,8 +1485,6 @@ int blkcg_activate_policy(struct request_queue *q, out_bypass_end: if (q->mq_ops) blk_mq_unfreeze_queue(q); - else - blk_queue_bypass_end(q); if (pd_prealloc) pol->pd_free_fn(pd_prealloc); return ret; @@ -1513,8 +1509,6 @@ void blkcg_deactivate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_freeze_queue(q); - else - blk_queue_bypass_start(q); spin_lock_irq(q->queue_lock); @@ -1533,8 +1527,6 @@ void blkcg_deactivate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_unfreeze_queue(q); - else - blk_queue_bypass_end(q); } EXPORT_SYMBOL_GPL(blkcg_deactivate_policy);