[PATCH] replace sync_page_range() with generic_write_sync() in file-io.c

Tim Gardner tim.gardner at canonical.com
Mon Dec 7 17:55:43 UTC 2009


Tim Gardner wrote:
> John Johansen wrote:
>> Manoj Iyer wrote:
>>> ----
>>> resending patch, my previous mail bounced coz of membership requirement
>>> ----
>>>
>>> sync_page_range() was recently removed from 2.6, this causes the
>>> iscsi-target build to fail in file-io.c. possibly sync_page_range() can be
>>> replaced with generic_write_sync() ?
>>>
>> yeah they basically do the same thing though it looks like generic_write_sync
>> can be heavier than what is needed in some cases.  See
>> http://lkml.org/lkml/2009/8/19/330
>>
>> I haven't followed through to check whether this is the case with iscsi-target
>> yet.
>>
> 
> Seems to me that we should use filemap_write_and_wait_range() in order
> to preserve the intended semantics of the original call to
> sync_page_range(). Since this is a network protocol, we don't want file
> pages getting cached, or is my interpretation too naive?
> 
> rtg

Andy - please pull from git://kernel.ubuntu.com/rtg/ubuntu-lucid
iscsitarget.

Use filemap_write_and_wait_range() in place of sync_page_range(). This
appears to better preserve the original semantics.

rtg
-- 
Tim Gardner tim.gardner at canonical.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: iscsitarget.txt
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20091207/6c317e42/attachment.txt>


More information about the kernel-team mailing list