From patchwork Wed Oct 31 17:58:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10663045 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 C50791751 for ; Wed, 31 Oct 2018 17:59:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4B4B2B4DC for ; Wed, 31 Oct 2018 17:59:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A94442B4E0; Wed, 31 Oct 2018 17:59:41 +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=ham 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 469182B4DC for ; Wed, 31 Oct 2018 17:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730156AbeKAC6o (ORCPT ); Wed, 31 Oct 2018 22:58:44 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:40812 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730157AbeKAC6n (ORCPT ); Wed, 31 Oct 2018 22:58:43 -0400 Received: by mail-it1-f195.google.com with SMTP id i191-v6so19537553iti.5 for ; Wed, 31 Oct 2018 10:59:39 -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=BDgmKqhGidIy3bbORfrpV6rgHboOwIOrefGNmzuwToU=; b=z2CBa1eqfd9MzvZ+Yf3p+AFkSVWqeX25p5EUpmJVwPPXQku5qveOytQiO2Fpwj1TJs 0pdzY2eouNL46iKqXENiB9eWYdeV8LCFQDmMLYhu0jCGwFn2o7DzLcMmJgYXS5uQv/zy eaVoFFYS3yz2DwayS+RrLsvcYeGunk6dJu1iKUjQekCQhPruAxQ+sASCv0d96wSxJQVf FRGyPVYnPhTYRa+StLSnE+vv7WzV9S3+fbjYnyYmVpiBUwphQFHxojYgX2FrbDZx+w5C YHESXMC5W+lKnjV7DP8wKMkdzAqnZHeMQIgv2EY7maqbymJXj6tfiGBop6ZJr5yglvVx o0NA== 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=BDgmKqhGidIy3bbORfrpV6rgHboOwIOrefGNmzuwToU=; b=MfqADSDIpo6Ukb2XAsZyL1sbrfnfawcpHpb+y/FPjVeAMIWMru1+KTMyF6i70NCXYY XK7l951QTChQi3bgsVDJuMw5tl4xsa5EWb/fiYqtmhq7akZvDOqIcpKIrSxI82NCWyu7 ot/LANvv4MIsy04s51K5yt0H9PrJVB4gu+XD7LuxgrYJdft5ZR6Vhlu8ozvC4f4ZvVTY MXR0tbFmUKY6l1fCKzJ7hZ3Y7+qZH0xLWeplNI9vHiywN7c3H8k06Np5eUo9sIn4+EV7 9Z8w5SuwPHlMaVic6uxVwkhXKG3Zi7YT3alVij8x1DqN+vcte142HYryajt9PZdlLjDC LYww== X-Gm-Message-State: AGRZ1gIg2YQRQ9ZJujjP1aF7kV/2h5yA0oTp5ykoJls93uL8bcY8z+cQ S+8xPdMKfa6e3Konu2g+f7uLq3nlOmc= X-Google-Smtp-Source: AJdET5cLhKcd8bERC3nyC8Eo5XbOH4081JIzCdTphA4/bP60LO08QWcMYptq0h6M9fMDqBZP8+CuzA== X-Received: by 2002:a02:7ed5:: with SMTP id g82-v6mr3116541jae.71.1541008779126; Wed, 31 Oct 2018 10:59:39 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id 197-v6sm10982947iou.87.2018.10.31.10.59.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 10:59:37 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 06/30] blk-mq: remove legacy check in queue blk_freeze_queue() Date: Wed, 31 Oct 2018 11:58:58 -0600 Message-Id: <20181031175922.8849-7-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031175922.8849-1-axboe@kernel.dk> References: <20181031175922.8849-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 Reviewed-by: Hannes Reinecke Signed-off-by: Jens Axboe --- block/blk-mq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 4c82dc44d4d8..a58d2d953876 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -177,8 +177,6 @@ void blk_freeze_queue(struct request_queue *q) * exported to drivers as the only user for unfreeze is blk_mq. */ blk_freeze_queue_start(q); - if (!q->mq_ops) - blk_drain_queue(q); blk_mq_freeze_queue_wait(q); }