From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4A62C433FE for ; Fri, 21 Oct 2022 13:23:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbiJUNXX (ORCPT ); Fri, 21 Oct 2022 09:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbiJUNXW (ORCPT ); Fri, 21 Oct 2022 09:23:22 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E2A1261419 for ; Fri, 21 Oct 2022 06:23:22 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 191AD68B05; Fri, 21 Oct 2022 15:23:19 +0200 (CEST) Date: Fri, 21 Oct 2022 15:23:18 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Chao Leng , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org Subject: Re: [PATCH 4/8] blk-mq: pass a tagset to blk_mq_wait_quiesce_done Message-ID: <20221021132318.GD22327@lst.de> References: <20221020105608.1581940-1-hch@lst.de> <20221020105608.1581940-5-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Fri, Oct 21, 2022 at 09:46:33AM +0800, Ming Lei wrote: > The change is fine, but the interface could confuse people, it > looks like it is waiting for whole tagset quiesced, but it needs > to mark all request queues as quiesced first, otherwise it is just > wait for one specific queue's quiesce. > > So suggest to document such thing. Yes, that's probably a good idea. Still better would be to make this API purely internal, as the pure wait callers in NVMe and SCSI are a bit sketchy.