Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1167197ybt; Fri, 26 Jun 2020 23:51:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6vXGaCSjQFE9xubIVheZpMWTKras7QafgGpxKSRGPFEblaAD7J8IQmXmbhRgmrXvBee4O X-Received: by 2002:a17:906:4f13:: with SMTP id t19mr5507545eju.269.1593240719771; Fri, 26 Jun 2020 23:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593240719; cv=none; d=google.com; s=arc-20160816; b=XYHAY/JffuUZg7Av7W6qkjGyAZ7y+g02SM8zn4bFTCiRkM4+aj+Nv4RICnllSxrmXO t5TlScTpEOIBzLjnJHlPyUsvA0HvBLAAuQFOiTB7bfXouvUmSqngitIRYE5xCkJrFs+Z 9zNQiZVM5HBy8NBLeKcgH+vKZz5Q0VMJaFfhVtHkPJwll+3iCKGwnQwkQK0d6M7vgtPe n+brLXNDA5KR4SNe3LEBJ3c1u5uul3djhY3UDgfqAdXusEyup3lUubP0wUPaKSnSf2yM lT5i07wjiiEgwpc3UiHLJIqjLl2by4Wc5Z6R/vARUOl/tMQj5Fh56jZjZoP/dDDlbcAf fsMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cA+nDLk1cEiM+pjhFHWGJZnPhFcjX6nAKwC92ViSHuk=; b=NAWv279Jhy8pAqvZnzsQcV98B3dowdJwYyWiJ1XJHCmw5dxyg5rfro11hyhJku+bWd 7a6JMrH6jCGPHP8KfB+HZSbqozdQTWI+70eLzWsOfa8PYBOlDIKmV1LJG+izyCGUBjdA BCvWDgoXQlHVRKBw6SJVpNMl1a5SuOaS34qidCRlsBzUenFLDP/iXK2eDzq2jg2kJY2c dCjd2ne8qNXSEOvtf/K/6EqVpyFugsrHvNE2pNjXUY536rZXiiO2QUeDdiZBpsRCc3R8 R7dgpbxAM61xs7Udh+Wqyi+pMaEM/Pbe3EbxNMZ1rUNnkF0vINFrCQOJdjhz+tWsOL8m pCBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=cJU7Kmy1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si3670178ejb.118.2020.06.26.23.51.36; Fri, 26 Jun 2020 23:51:59 -0700 (PDT) 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=fail header.i=@infradead.org header.s=casper.20170209 header.b=cJU7Kmy1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726023AbgF0Gvc (ORCPT + 99 others); Sat, 27 Jun 2020 02:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbgF0Gvc (ORCPT ); Sat, 27 Jun 2020 02:51:32 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174FAC03E979; Fri, 26 Jun 2020 23:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=cA+nDLk1cEiM+pjhFHWGJZnPhFcjX6nAKwC92ViSHuk=; b=cJU7Kmy1aduUvHoiPAo1vh16S7 lN7xe3StQ5MB7txNrLcHuv3hHkuDTagybLIaCpnw8Cd20sXvqmhtn7mtrzf/gvfyY0eiFE6KwcAuY ZHkFfjSsqPIib22YZ3I6Sku5XtZZUkuaUmeoONil6pw4UF/Rp54mfPwGOO8qpuy1ZBcxDvosIZWdp oaImaF6BBRTmoiG6bcKYsNimillWYaBpua7CFYiYlPF5DHHKFfnu0UsxyHC5BWal8X61mhX7IujAP 4L+3aIwbGMa710Zi58WPU63g8b/fBV2pMLPb9A+YQoSM12xTjGkmL5irlo0aT/Qc+S7PFsYUdbygF uLWb8Kew==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jp4g4-0005I8-2Z; Sat, 27 Jun 2020 06:51:04 +0000 Date: Sat, 27 Jun 2020 07:51:04 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: Christoph Hellwig , axboe@kernel.dk, viro@zeniv.linux.org.uk, bcrl@kvack.org, asml.silence@gmail.com, Damien.LeMoal@wdc.com, linux-fsdevel@vger.kernel.org, mb@lightnvm.io, linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, selvakuma.s1@samsung.com, nj.shetty@samsung.com, javier.gonz@samsung.com, Arnav Dawn Subject: Re: [PATCH v2 1/2] fs,block: Introduce RWF_ZONE_APPEND and handling in direct IO path Message-ID: <20200627065104.GA20157@infradead.org> References: <1593105349-19270-1-git-send-email-joshi.k@samsung.com> <1593105349-19270-2-git-send-email-joshi.k@samsung.com> <20200626085846.GA24962@infradead.org> <20200626211514.GA24762@test-zns> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626211514.GA24762@test-zns> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 02:45:14AM +0530, Kanchan Joshi wrote: > For block IO path (which is the scope of this patchset) there is no > probelm in using RWF_APPEND for zone-append, because it does not do > anything for block device. We can use that, avoiding introduction of > RWF_ZONE_APPEND in user-space. No, you are not just touching the block I/O path. This is all over the general file code, and all RWF_* flag are about file I/O.