Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1072031pxb; Tue, 9 Nov 2021 04:48:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJystWj5HYl7nc0t09qM1ThQ6vhunQQmGn4Vh+qDpKnLTWAORfF+pbSqc67Q9mBHgXKTJoGz X-Received: by 2002:a17:907:3d9e:: with SMTP id he30mr9280428ejc.177.1636462086956; Tue, 09 Nov 2021 04:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636462086; cv=none; d=google.com; s=arc-20160816; b=hIVzJhXFe3pLPUr0myRzCfvJMJCEmEo+eHgQlSNiNPHtO9t3jYExEsVoydn4zRrYrk PPLI6NVL0zFHHw5Iu25q6eY4EL6n5TpMNvVBdzzmOPGORqtWvFCWdhl4k6jA7oGu53sR VpMTgmzdI2PYwY0HQoZHxbfb9Q6nESx5pMtGxFz36MIzNXJUcSgZy6ZquWtYL/sh8koO z4rKMAHyaV5h3tTkkXJe6qsf+Z33TXtUq062vUwvJqbi3NXnp/6V/vQHlps5oAPJINkP TvcSzIo3/cd5+RYJ+/IMk9+em89nR5oA7QGtxRTnXbE16Jw6e2hkpKC1TX4riptouv4w vGTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PbN9P372b4zfsNQXGyxa6f7PkAhvEGlp6qQZjPVPkKs=; b=cd0SOR/dvwZ/CGSbuWl0xAoPlDjqk8m1JD+NHEDpmSu+THByREmiM5TVIQ/mxGioSP wROpC0nzP7ZKdPyhFd1PufECLi0+IoJbYtacOz1mT4985BqJmA/OZ4xT2XKDHpEu2iZj oj/x4vIiBnU4c+inX79zHU0Y4ch3PjSXY23qL6VECEOAb/OCPZ5rXp+IlW6BloClTSfZ x7ugjafY6Z0953Gb65ZN5s9+Z84+9FMdHkD7LJoeu3vQdQ3DnTu2jet3i42Dkt4vZgGT 56L9iInQpnAXwn+p3n2o0Q6fVwlkQfkibeJBWwA3X2UKasgaLL9YZlisrNB2Juw33Ot4 QfcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nf8r6rM6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si45638744edz.588.2021.11.09.04.47.42; Tue, 09 Nov 2021 04:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nf8r6rM6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242301AbhKIDFS (ORCPT + 99 others); Mon, 8 Nov 2021 22:05:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:53311 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242285AbhKIDFR (ORCPT ); Mon, 8 Nov 2021 22:05:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636426952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PbN9P372b4zfsNQXGyxa6f7PkAhvEGlp6qQZjPVPkKs=; b=Nf8r6rM67Yw7tSNmAik+PoeJ893swk6dFSjYaYl3idp8sk+jejMJwUvoYYmYXOa9ujapyA l2mO+o4WNvUXOeD3IdwDBuoWtrplCpA+lP7zoV9Ce5k+ZUtogWq/TlsUEjvCx2qve+AkJ5 FzbdEiUUII+Hunt0LELM8TA8FbF/5mI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-237-zPLC8p2oMSiYmNba_b4oLg-1; Mon, 08 Nov 2021 22:02:30 -0500 X-MC-Unique: zPLC8p2oMSiYmNba_b4oLg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE2C8108087A; Tue, 9 Nov 2021 03:02:28 +0000 (UTC) Received: from T590 (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B2E760CC4; Tue, 9 Nov 2021 03:02:16 +0000 (UTC) Date: Tue, 9 Nov 2021 11:02:11 +0800 From: Ming Lei To: John Garry Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, kashyap.desai@broadcom.com, hare@suse.de Subject: Re: [PATCH RFT 1/3] blk-mq: Drop busy_iter_fn blk_mq_hw_ctx argument Message-ID: References: <1635852455-39935-1-git-send-email-john.garry@huawei.com> <1635852455-39935-2-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1635852455-39935-2-git-send-email-john.garry@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 02, 2021 at 07:27:33PM +0800, John Garry wrote: > The only user of blk_mq_hw_ctx blk_mq_hw_ctx argument is > blk_mq_rq_inflight(). > > Function blk_mq_rq_inflight() uses the hctx to find the associated request > queue to match against the request. However this same check is already > done in caller bt_iter(), so drop this check. > > With that change there are no more users of busy_iter_fn blk_mq_hw_ctx > argument, so drop the argument. > > Signed-off-by: John Garry > --- Reviewed-by: Ming Lei -- Ming