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: 10656505 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 C13D01751 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 B6A212C648 for ; Thu, 25 Oct 2018 21:11:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB22D2C650; 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=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 703272C648 for ; Thu, 25 Oct 2018 21:11:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbeJZFpR (ORCPT ); Fri, 26 Oct 2018 01:45:17 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:51786 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbeJZFpR (ORCPT ); Fri, 26 Oct 2018 01:45:17 -0400 Received: by mail-it1-f196.google.com with SMTP id 74-v6so3352054itw.1 for ; Thu, 25 Oct 2018 14:10:59 -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=CLsDYg5v/5IdwP+gglp1n3b54Lhxyb0lDW1BjJ6WReEf4K+M/QrcQ+LRgYa2wj8a9Y qMHt2b9QwfL5g/w3DIWEkdUGaqZu7ydDmetFQfFGMiPBlAhyahz4dotnfEKAyDqnhpfG 0TNlOzLlQaaDgptVoeVc8oy5iow+NwPqcEbSNR8jav1Z/dzK586cm+Lcd8+SfPqUSQGV KSS674ChTjxbwKNIpVgBVhjnYromWMyBGwnaAZCj+h0OLW/KSp+2G27Ak8abH/gAOdij Swv93K/KR55+i+2KhMoAiaiZkxWRpw9Oe94q/EC0MYKiMBpQP6j6BUUNfl2TqaKL03gO QrBw== X-Gm-Message-State: AGRZ1gKJsBz80GAbYDDH4NyOMrRYjE+DxVxtOQmTv6Z5w7cylV9JH9Kp yKJY8cMEfCWVRdsxZOCS6cdX7toGn6Pvjw== 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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); }