![]() | ||||||||||
Messages in this thread |
Vladimir Saveliev <vs@namesys.com> wrote: > > > + /* > > + * If there is a pagecache page at the current i_size we need to lock > > + * it while modifying i_size to synchronise against > > + * block_write_full_page()'s sampling of i_size. Otherwise > > + * block_write_full_page may decide to memset part of this page after > > + * the application extended the file size. > > + */ > > Don't down-ings i_sem in do_truncate and in generic_file_write take care > of this kind of race? Nope, the only lock which block_write_full_page() can be guaranteed to hold is the page lock. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2005-03-22 13:03 [from the cache] ©2003-2008 | ||||||||||