lkml.org 
[lkml]   [2015]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/4] fs: kiocb: introduce IOCB_DONT_DIRTY_PAGE flag for direct IO
On Thu, May 07, 2015 at 01:08:23AM +0800, Ming Lei wrote:
> When direct IO is submitted from kernel, it is often unnecessary
> to dirty pages, for example of loop, dirtying pages have been
> considered in the upper filesystem(over loop) side already, and
> they don't need to be dirtied again.
>
> So this patch introduces IOCB_DONT_DIRTY_PAGE flag for direct IO,
> and other ITER_BVEC and ITER_KVEC cases might benefit from it too.
>
> The patch is based on previous Dave's patch.

in-kernel I/O should never dirty the pages written to or read from,
so just checking the iov_iter type should be enough.


\
 
 \ /
  Last update: 2015-05-07 09:41    [W:0.099 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site