From patchwork Mon Jul 1 15:42:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 11026401 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 D1E5A1398 for ; Mon, 1 Jul 2019 15:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C169328680 for ; Mon, 1 Jul 2019 15:42:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5AA6286EC; Mon, 1 Jul 2019 15:42:39 +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,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 C081728680 for ; Mon, 1 Jul 2019 15:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728432AbfGAPmh (ORCPT ); Mon, 1 Jul 2019 11:42:37 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45187 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbfGAPmg (ORCPT ); Mon, 1 Jul 2019 11:42:36 -0400 Received: by mail-pf1-f196.google.com with SMTP id r1so6760498pfq.12 for ; Mon, 01 Jul 2019 08:42:36 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=e7HppAsTvOgVLoaEVfL9rVQpSo+OVVN0OGx8cG98PLk=; b=kxk6MeKPvJBAURL1FcaDATfK53nTs/UoWUavrqPuGzWJlIIBay22swNyBTaj0XmgYD dguKjfY5db8ZrEDCHy5YL2T4DBHBpvavpyFk+7BYj6SdIeBuuxFJB++eBJcuYIGzcJMl IEe9L3O51CsSRP0E3MF57xsL4kfo0rA+bktWdGdU6XcrE9Z8RLvPQpe2iHcVTICP12hm ozg7ojrlh04k97BX7kGYnSNu3+goLpLGPXwKNb2DEtYoYNRxTLUdI7rbtE/ERIpZU+ss hSVpzXSur2RFMd411xJVtT5rCIyIFHvP7JwcOFZHpEzsR5ml9wny3FAs1KLjPbRAQHDU EP/Q== X-Gm-Message-State: APjAAAU6bMb6OBzHQFBaLbDMNbDptBTxW6/UF0Y2uNCA/bT5L3iF63g4 3pROdvY3MYxspmeug1aHh9c= X-Google-Smtp-Source: APXvYqw6PBWufdEsKkAD9PmE+9E+W3xeaqMuoYNfTbCcyaSXYn4eyNoHV0LxNnKNtTXHl7MjVcPhTg== X-Received: by 2002:a63:4c0b:: with SMTP id z11mr25767916pga.440.1561995756117; Mon, 01 Jul 2019 08:42:36 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id n98sm12043027pjc.26.2019.07.01.08.42.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 08:42:35 -0700 (PDT) From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Christoph Hellwig , Hannes Reinecke , James Smart , Ming Lei , Jianchao Wang , Dongli Zhang Subject: [PATCH] block: Fix a comment in blk_cleanup_queue() Date: Mon, 1 Jul 2019 08:42:30 -0700 Message-Id: <20190701154230.202921-1-bvanassche@acm.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 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 Change a reference to the legacy block layer into a reference to blk-mq. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: James Smart Cc: Ming Lei Cc: Jianchao Wang Cc: Dongli Zhang Signed-off-by: Bart Van Assche Reviewed-by: Chaitanya Kulkarni --- block/blk-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/blk-core.c b/block/blk-core.c index 2e5e677d1cee..6361419f0b6e 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -346,7 +346,8 @@ void blk_cleanup_queue(struct request_queue *q) /* * Drain all requests queued before DYING marking. Set DEAD flag to - * prevent that q->request_fn() gets invoked after draining finished. + * prevent that blk_mq_run_hw_queues() accesses the hardware queues + * after draining finished. */ blk_freeze_queue(q);