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 B0AD4C433F5 for ; Mon, 25 Oct 2021 07:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FDAB60FBF for ; Mon, 25 Oct 2021 07:36:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231695AbhJYHio (ORCPT ); Mon, 25 Oct 2021 03:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhJYHio (ORCPT ); Mon, 25 Oct 2021 03:38:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46F9C061745 for ; Mon, 25 Oct 2021 00:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=d7rDqH4nh/dpRuh6Lh6X9+dwt3yfokbwF6bF/+8p+M4=; b=wUhskMvPH1HQMKtotJP5aAEDrx eMiePf50eWfw2Mh36TpEAGthOfgxDz4if+hOx+63GNpkno9LSyGnX5FpFAYz2usQPSE22RFNXldto Ah7GoF1bzJtoQcn0pU7aHEYryUunrgUTqVqsc5QYLxczrcZHNbfKF5yqdApsfOaF+5bKx+OFrgT2s nbh5mvdoclEr0qUIMmwYWlOJLfN2sWtM//aE4WtShVFhupm3DcmoTSELIKOYZWSUA0KRLXglwefe9 iXMbBb2WllGCQPRwnhXZvTYS36BWUMzP4SYlkW3FaaEunJEMzQkN05Yhnp7TBcUTLimhfDT5x14sf XNVBx3mg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1meuWs-00FeGN-Cb; Mon, 25 Oct 2021 07:36:22 +0000 Date: Mon, 25 Oct 2021 00:36:22 -0700 From: Christoph Hellwig To: Pavel Begunkov Cc: linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig Subject: Re: [PATCH 5/5] block: add async version of bio_set_polled Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sat, Oct 23, 2021 at 05:21:36PM +0100, Pavel Begunkov wrote: > +static inline void bio_set_polled_async(struct bio *bio, struct kiocb *kiocb) > +{ > + bio->bi_opf |= REQ_POLLED | REQ_NOWAIT; > +} As mentioned last time I'm a little skeptical of this optimization. But if you an Jens thing it is worth it just drop this helper and assign the flags directly.