[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1452268927.11435.3.camel@suse.com>
Date: Fri, 08 Jan 2016 17:02:07 +0100
From: Oliver Neukum <oneukum@...e.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Alan Stern <stern@...land.harvard.edu>,
"Steinar H. Gunderson" <sesse@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH] Add support for usbfs zerocopy.
On Fri, 2016-01-08 at 01:45 -0800, Christoph Hellwig wrote:
> On Wed, Jan 06, 2016 at 10:35:05AM -0500, Alan Stern wrote:
> > Indeed, the I/O operations we are using with mmap here are not reads or
> > writes; they are ioctls. As far as I know, the kernel doesn't have any
> > defined interface for zerocopy ioctls.
>
> IF it was using mmap for I/O it would read in through the page fault
> handler an then mark the page dirty for writeback by the VM. Thats
> clearly not the case.
That won't work because we need the ability to determine the chunk size
IO is done in. USB devices don't map to files, yet the memory they can
operate on depends on the device, so allocation in the kernel for
a specific device is a necessity.
Regards
Oliver
Powered by blists - more mailing lists