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 C1A8FC6FD1D for ; Sat, 1 Apr 2023 13:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229804AbjDANYD (ORCPT ); Sat, 1 Apr 2023 09:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbjDANYC (ORCPT ); Sat, 1 Apr 2023 09:24:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6352546E for ; Sat, 1 Apr 2023 06:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680355358; 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=WVXk13Jt7hsNQvxvVP08hy5UcBn+tBDbfgB3QoQy/aw=; b=RBrRZOlzxMHAp7TitDwBidL+a4N7pgiZlQh/TFmGyxVlghzds72colFTm1/ZCWQDop36UQ 4V/48K2nrbVCLrbXmFF+YrBL5yOekdeKfUPnDGa+B+CHayo5mg9TCF+x4XiPkzDWigaNSg PBrr8BLa9GM2b9FnI4EZfUUWpOGEK0A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-557-W_xJP64DP8-Bw2Hu84eTPw-1; Sat, 01 Apr 2023 09:22:33 -0400 X-MC-Unique: W_xJP64DP8-Bw2Hu84eTPw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B56861C05EB5; Sat, 1 Apr 2023 13:22:32 +0000 (UTC) Received: from ovpn-8-18.pek2.redhat.com (ovpn-8-18.pek2.redhat.com [10.72.8.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D66791121314; Sat, 1 Apr 2023 13:22:25 +0000 (UTC) Date: Sat, 1 Apr 2023 21:22:20 +0800 From: Ming Lei To: Bernd Schubert Cc: Jens Axboe , "io-uring@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Miklos Szeredi , ZiyangZhang , Xiaoguang Wang , Pavel Begunkov , Stefan Hajnoczi , Dan Williams , ming.lei@redhat.com Subject: Re: [PATCH V6 17/17] block: ublk_drv: apply io_uring FUSED_CMD for supporting zero copy Message-ID: References: <20230330113630.1388860-1-ming.lei@redhat.com> <20230330113630.1388860-18-ming.lei@redhat.com> <22d9e781-4100-9d24-0ece-a008fd299ab4@ddn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22d9e781-4100-9d24-0ece-a008fd299ab4@ddn.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Fri, Mar 31, 2023 at 07:55:30PM +0000, Bernd Schubert wrote: > On 3/30/23 13:36, Ming Lei wrote: ... > > +static inline bool ublk_check_fused_buf_dir(const struct request *req, > > + unsigned int flags) > > +{ > > + flags &= IO_URING_F_FUSED_BUF; > > ~IO_URING_F_FUSED_BUF ? IO_URING_F_FUSED_BUF is buffer direction mask, and we can get direction flags only in above way, so the above is correct. Thanks, Ming