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: 10663047 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 1885113A4 for ; Wed, 31 Oct 2018 17:59:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B0432B4D3 for ; Wed, 31 Oct 2018 17:59:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2FB22B4DC; 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=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 77FAB2B4D3 for ; Wed, 31 Oct 2018 17:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730159AbeKAC6n (ORCPT ); Wed, 31 Oct 2018 22:58:43 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:35137 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730037AbeKAC6n (ORCPT ); Wed, 31 Oct 2018 22:58:43 -0400 Received: by mail-it1-f195.google.com with SMTP id p64-v6so19547241itp.0 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=HA4fq0m9/ttc7tuf8SGrsOkCQmooZGFMYE6xkEyQnvBuTjeMaovMKnnChDc8KqrwH7 gUwJeSVfflGApwZcLAazSJNCNCa/cgAOLwBJ8cw0V6jKorgs38zHbVF843fHHuR6sgqi xzIoXP7tEl5YXy5pbjqA/mV6kO58ceVCu35njRRcQqhhaCDGNjnjkrti6LBx+9MkqLtZ JovZDwrUYkig8fWM7InaewxORTARc8nQ9ruadsXuSAJG5imK3lcTPKcxuF8jWAtWw358 PMtKLwIvl3Y7dJy4HKtewR3uS7YYNUfuxUwrZsvP0sZXY1VxXU5Ouf49U8JYH1aRpQ6l NBuQ== X-Gm-Message-State: AGRZ1gLHNxqvRnyOONv43kxdTc+mgsG+4DIxySB9vOdBPiihgOJBLBHG BEHEMDCMKQVaiwsjWuIWVPSiIw== 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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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); }