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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 470A5C433FE for ; Fri, 15 Oct 2021 13:24:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C69F61090 for ; Fri, 15 Oct 2021 13:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235848AbhJON1A (ORCPT ); Fri, 15 Oct 2021 09:27:00 -0400 Received: from verein.lst.de ([213.95.11.211]:54515 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232572AbhJON06 (ORCPT ); Fri, 15 Oct 2021 09:26:58 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6D9E668BEB; Fri, 15 Oct 2021 15:24:49 +0200 (CEST) Date: Fri, 15 Oct 2021 15:24:49 +0200 From: Christoph Hellwig To: Pankaj Raghav Cc: Christoph Hellwig , Jens Axboe , Jeffle Xu , Ming Lei , Damien Le Moal , Keith Busch , Sagi Grimberg , "Wunderlich, Mark" , "Vasudevan, Anil" , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nvme@lists.infradead.org, Pankaj Raghav Subject: Re: [PATCH 14/16] block: switch polling to be bio based Message-ID: <20211015132449.GA30212@lst.de> References: <20211012111226.760968-1-hch@lst.de> <20211012111226.760968-15-hch@lst.de> <20211015083026.3geaix6r6kcnncu7@quentin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211015083026.3geaix6r6kcnncu7@quentin> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Oct 15, 2021 at 10:30:26AM +0200, Pankaj Raghav wrote: > > @@ -568,7 +569,8 @@ blk_status_t errno_to_blk_status(int errno); > > #define BLK_POLL_ONESHOT (1 << 0) > > /* do not sleep to wait for the expected completion time */ > > #define BLK_POLL_NOSLEEP (1 << 1) > Minor comment: Could we also have a flag #define BLK_POLL_SPIN 0? > It can improve the readability from the caller side instead of having > just a 0 to indicate spinning. The above are flags, so adding a define for a value is a bit counter productive.