From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC PATCH 00/09] Implement direct user I/O interfaces for RDMA Date: Thu, 17 May 2018 23:44:00 -0700 Message-ID: <20180518064400.GB9425@infradead.org> References: <20180518002214.5657-1-longli@linuxonhyperv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Tom Talpey , Steve French , "linux-cifs@vger.kernel.org" , "samba-technical@lists.samba.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" To: Long Li Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-cifs.vger.kernel.org On Fri, May 18, 2018 at 06:03:09AM +0000, Long Li wrote: > I also want to point out that, I choose to implement .read_iter and .write_iter from file_operations to implement direct I/O (CIFS is already doing this for O_DIRECT, so following this code path will avoid a big mess up). The ideal choice is to implement .direct_IO from address_space_operations that I think eventually we want to move to. No, the direct_IO address space operation is the mess. We're moving away from it.