From patchwork Thu Oct 25 21:10:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10656503 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 55F9815A7 for ; Thu, 25 Oct 2018 21:11:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A38D2C648 for ; Thu, 25 Oct 2018 21:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E74C2C650; Thu, 25 Oct 2018 21:11:00 +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 EF0F92C648 for ; Thu, 25 Oct 2018 21:10:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbeJZFpR (ORCPT ); Fri, 26 Oct 2018 01:45:17 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:53176 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbeJZFpR (ORCPT ); Fri, 26 Oct 2018 01:45:17 -0400 Received: by mail-it1-f193.google.com with SMTP id 134-v6so3348901itz.2 for ; Thu, 25 Oct 2018 14:10:58 -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=H/cznMlsXhGUnontVf8uJ3IcABUcm6GhRO1y1Jd238E=; b=bzaRRGGbYYyZFYYQsn0Vwijy0mMth5SArw5pTJTY/G88DRX6AK2kETZ2XU8V0RhEHA NmsJD9vp3lkihKp+nW+ODsplMY7SRu2bJwA4J6pTnCTn6DaHMAQ9Qwx4Udtn/fTprv1i aYeyQLX7t8E3SBihJzX03C1Gy10u6mUBdh/nGP35UdWy/6C3B6xTtPx8oK3UWYbyGX5T ROolx/OLywKuYKG+WTS6SpUUHiTDkXf+i0IE5DgDtu9Dz0qyLiPV8ekUbg3iKrqJorG4 kvNB44OlrLB9qoZA1/6JYuf/Ofx8aRFZkC7SF5k4D6dikaznH+7QBzlIF9V7zcc5n885 iBRw== 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=H/cznMlsXhGUnontVf8uJ3IcABUcm6GhRO1y1Jd238E=; b=Rehhk/pH65h+LG7e/7EsuBRdU8iTPVVm96X7/8bmDRbsxEHuxVCtw/uT/nw8OuxNXy ReGAlU0nBzIua+EPxyPL2dYK1yBGKt3uSu5tFpJ+ktACUyKCkb/GTUsQnTxNZpzo4q/z eJd2vtvQp5Zoj2l/N6fW/zh5FbD3S0O8gnEmcB5dW7NJlcQ9vQELSzCxKXLMXN3jFbh7 u5cFCBJ5Htc/dpkCsg6Zm8YuDtvIid8ekof1MwfAJVSz2EGcGiKNlvXdhhc98JNaPaAs XvLWX23gK3hFyQqsVBTNrIrYN4NmSQ5kaAY4uJwn3QDve3TeiZd4U5xuQxyEaqyC9Dtk wZXQ== X-Gm-Message-State: AGRZ1gL5vewOccJZsB6CS3hORD+GeDm26TFk23gpNAo72R04Kk6+z5WA XtxcWMBnOBEKb7uXAKuDbqQgaw== X-Google-Smtp-Source: AJdET5cF/sblXEGciXvqCP6hrKBY4+nGB5sXN2v3iH12FRhOo/E/TsnKXl34NsICVSlcC2eFIukTpA== X-Received: by 2002:a02:a914:: with SMTP id n20-v6mr693293jam.90.1540501858380; Thu, 25 Oct 2018 14:10:58 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e65-v6sm3446375ioa.76.2018.10.25.14.10.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 14:10:57 -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 07/28] blk-mq: remove legacy check in queue blk_freeze_queue() Date: Thu, 25 Oct 2018 15:10:18 -0600 Message-Id: <20181025211039.11559-8-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-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jens Axboe Reviewed-by: Hannes Reinecke --- 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); }