From patchwork Mon Oct 29 16:34:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10659589 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 503361751 for ; Mon, 29 Oct 2018 16:35:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3447129C31 for ; Mon, 29 Oct 2018 16:35:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2881629C41; Mon, 29 Oct 2018 16:35:03 +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 C0A9129C31 for ; Mon, 29 Oct 2018 16:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727955AbeJ3BYW (ORCPT ); Mon, 29 Oct 2018 21:24:22 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:54099 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbeJ3BYW (ORCPT ); Mon, 29 Oct 2018 21:24:22 -0400 Received: by mail-it1-f194.google.com with SMTP id f16-v6so2754182ita.3 for ; Mon, 29 Oct 2018 09:35:01 -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=bYYgoM+TnFIn6hfT9LrGlf3qonQ4rWvxp7dg1Z3s0cGy2FmmOn002CJHx5Irjtjfe+ H9EJag3bgAX/BdKy0fZiA4oKfI9EE0QZpxkCDhQiWTYfxLRyOoszk2kcWZ40DjtEzRM1 ZpqNjs9ZdyrnVdFsxUZT3akoIFYYK9Rt0pCaOB4QMvaj0zM++Tk12Y6auClQBHLoSPE6 8v19S/nUMttD5UbyZuW/njSWPjZcr/yupFN+xayvMET4pROJXSnSrJfBxMh+YiKOo6UX TeCzsK2FfDdNNaRyBswIyxkOdCTvtwJSllh+BY9gSF9nS97W4ScQK+RUe3oswa0jM7bL PTrA== 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=qdR3AkcOpeOeCcN9wVKF1XSWZGrfyphT8QV+/TcCLnMcLIsNCUSr5Hxk/TUvFY4ukX J7Ort2IqzPr1hZLzfRKzbI7plmeO29FmR9PFKvOLDKwV2VJp+RBU24CGBqlABXuapbdI raTTinMNcT11EaFmCMkdCUkxYL/JWX46t2ROmSYs2ZNPsOTFIyovhdZyjyyy8hKNcskX VTd0TOFlF5q+qRGZmTcdqayURlNNIpt/s/FuAydfRKcaOOVxa09RiCVhpp1ZBLqz4pHR cUI/Y4mJQN+SFihnNhTJg0odzt287zoYzHuSmq1fkC0z5daugK380R2KhGuse+xDkrl8 ap6g== X-Gm-Message-State: AGRZ1gIp5YdQg9AAi0ygaWsjpGFY2ENZyKr4WC8LMyfyJayOOxoir4wo 4AYcSx3Lpe/VGEZN82f5tOQDOAay9n8= X-Google-Smtp-Source: AJdET5fK17wynsXHw7nxjXVV2u2qBs38rSwOqIWCUWUVcDWJgjq6HTstpCtU+iXXIcgcNnLPkx7TKQ== X-Received: by 2002:a24:7c07:: with SMTP id a7-v6mr7884936itd.42.1540830901525; Mon, 29 Oct 2018 09:35:01 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id n7-v6sm6464500itb.22.2018.10.29.09.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 09:35:00 -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 06/29] blk-mq: remove legacy check in queue blk_freeze_queue() Date: Mon, 29 Oct 2018 10:34:21 -0600 Message-Id: <20181029163444.9940-7-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029163444.9940-1-axboe@kernel.dk> References: <20181029163444.9940-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); }